From 875b4ecef79fd61f7d23260928638bcca4133751 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Thu, 24 Feb 2011 18:03:12 +0000 Subject: add isFixedWidth() to expose the newly added attribute git-svn-id: http://skia.googlecode.com/svn/trunk@849 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkTypeface.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/core') 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. */ -- cgit v1.2.3