Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: include/core/SkFont.h

Issue 245953003: Test font created from paint (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/tests.gypi ('k') | include/core/SkPaint.h » ('j') | tests/FontObjTest.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkFont.h
diff --git a/include/core/SkFont.h b/include/core/SkFont.h
index 4891926326a91b95bec4e858e92d1812cfcb34d4..8b0d10b7f96dfc6d2eb2988d0bece241cf0e4474 100644
--- a/include/core/SkFont.h
+++ b/include/core/SkFont.h
@@ -8,6 +8,9 @@
#include "SkRefCnt.h"
#include "SkScalar.h"
f(malita) 2014/05/30 15:02:44 Should these be inside the include guard?
reed1 2014/05/30 15:07:14 Done.
+#ifndef SkFont_DEFINED
+#define SkFont_DEFINED
+
class SkPaint;
class SkTypeface;
@@ -125,6 +128,12 @@ public:
uint32_t getFlags() const { return fFlags; }
MaskType getMaskType() const { return (MaskType)fMaskType; }
+ bool isVertical() const { return SkToBool(fFlags & kVertical_Flag); }
+ bool isEmbolden() const { return SkToBool(fFlags & kEmbolden_Flag); }
+ bool isEnableAutoHints() const { return SkToBool(fFlags & kEnableAutoHints_Flag); }
+ bool isEnableByteCodeHints() const { return SkToBool(fFlags & kEnableByteCodeHints_Flag); }
+ bool isUseNonLinearMetrics() const { return SkToBool(fFlags & kUseNonlinearMetrics_Flag); }
+
int textToGlyphs(const void* text, size_t byteLength, SkTextEncoding,
uint16_t glyphs[], int maxGlyphCount) const;
@@ -148,3 +157,5 @@ private:
uint8_t fMaskType;
// uint8_t fPad;
};
+
+#endif
« no previous file with comments | « gyp/tests.gypi ('k') | include/core/SkPaint.h » ('j') | tests/FontObjTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698