diff options
-rw-r--r-- | include/core/SkScalerContext.h | 4 | ||||
-rw-r--r-- | src/core/SkGlyphCache.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/core/SkScalerContext.h b/include/core/SkScalerContext.h index 22c22270ee..f59d489910 100644 --- a/include/core/SkScalerContext.h +++ b/include/core/SkScalerContext.h @@ -243,6 +243,10 @@ public: return (SkMask::Format)fRec.fMaskFormat; } + bool isSubpixel() const { + return SkToBool(fRec.fFlags & kSubpixelPositioning_Flag); + } + // remember our glyph offset/base void setBaseGlyphCount(unsigned baseGlyphCount) { fBaseGlyphCount = baseGlyphCount; diff --git a/src/core/SkGlyphCache.h b/src/core/SkGlyphCache.h index 9e630cd0d0..090a73f426 100644 --- a/src/core/SkGlyphCache.h +++ b/src/core/SkGlyphCache.h @@ -94,6 +94,10 @@ public: return fScalerContext->getMaskFormat(); } + bool isSubpixel() const { + return fScalerContext->isSubpixel(); + } + /* AuxProc/Data allow a client to associate data with this cache entry. Multiple clients can use this, as their data is keyed with a function pointer. In addition to serving as a key, the function pointer is called |