aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-02-24 18:03:12 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-02-24 18:03:12 +0000
commit875b4ecef79fd61f7d23260928638bcca4133751 (patch)
tree2d66f8bb9df5f5852f6952306ed443c95fb2b0f8
parent7b34ea61cea33e8790d4b2bd48a4e9c0bba066cd (diff)
add isFixedWidth() to expose the newly added attribute
git-svn-id: http://skia.googlecode.com/svn/trunk@849 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--include/core/SkTypeface.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkTypeface.h b/include/core/SkTypeface.h
index 2a4eece59e..f4b950768b 100644
--- a/include/core/SkTypeface.h
+++ b/include/core/SkTypeface.h
@@ -57,6 +57,10 @@ public:
*/
bool isItalic() const { return (fStyle & kItalic) != 0; }
+ /** Returns true if the typeface is fixed-width
+ */
+ bool isFixedWidth() const { return fIsFixedWidth; }
+
/** Return a 32bit value for this typeface, unique for the underlying font
data. Will never return 0.
*/