Chromium Code Reviews| 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 |