diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-02-24 18:03:12 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-02-24 18:03:12 +0000 |
commit | 875b4ecef79fd61f7d23260928638bcca4133751 (patch) | |
tree | 2d66f8bb9df5f5852f6952306ed443c95fb2b0f8 /include/core | |
parent | 7b34ea61cea33e8790d4b2bd48a4e9c0bba066cd (diff) |
add isFixedWidth() to expose the newly added attribute
git-svn-id: http://skia.googlecode.com/svn/trunk@849 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkTypeface.h | 4 |
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. */ |