diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-11-25 16:22:30 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-11-29 12:03:44 +0000 |
commit | 6b93b01ad6dfb5b0b2f067462690bdf14668f96c (patch) | |
tree | 2b589a14cf5a1310359d9599e26eeeb931563a1f /src/platformsupport/fontdatabases/mac/qfontengine_coretext_p.h | |
parent | d4e3442fdbb98b5c635448031ff9958819a46bc5 (diff) |
CoreText: Add helper function to determine if a font has color glyphs
Makes for clearer code than looking at the glyph format.
Change-Id: Id6dd2a7851aac2a42cc27d9e2fb408ce9a5345d3
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/platformsupport/fontdatabases/mac/qfontengine_coretext_p.h')
-rw-r--r-- | src/platformsupport/fontdatabases/mac/qfontengine_coretext_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/platformsupport/fontdatabases/mac/qfontengine_coretext_p.h b/src/platformsupport/fontdatabases/mac/qfontengine_coretext_p.h index 2ce46a4706..13505be0aa 100644 --- a/src/platformsupport/fontdatabases/mac/qfontengine_coretext_p.h +++ b/src/platformsupport/fontdatabases/mac/qfontengine_coretext_p.h @@ -139,6 +139,7 @@ protected: void init(); QImage imageForGlyph(glyph_t glyph, QFixed subPixelPosition, bool colorful, const QTransform &m); void loadAdvancesForGlyphs(QVarLengthArray<CGGlyph> &cgGlyphs, QGlyphLayout *glyphs) const; + bool hasColorGlyphs() const; QCFType<CTFontRef> ctfont; QCFType<CGFontRef> cgFont; |