diff options
author | Bruce Wang <brucewang@google.com> | 2018-07-15 17:11:25 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-17 21:51:21 +0000 |
commit | e3986755dbb1e3d18793ec3508b4e247449b2196 (patch) | |
tree | d8a0c0c61c00b1ea0ca162a3389d08d7b5c3d0a9 /src/ports/SkScalerContext_win_dw.h | |
parent | d5148e331436b69e3de1a35d4bfa8492e89b3cce (diff) |
Implement scaled color emoji using PNG format fonts.
Change-Id: I8da6258f2a8991231411e84b66b01a5e8fd38e31
Reviewed-on: https://skia-review.googlesource.com/141427
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Bruce Wang <brucewang@google.com>
Diffstat (limited to 'src/ports/SkScalerContext_win_dw.h')
-rw-r--r-- | src/ports/SkScalerContext_win_dw.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ports/SkScalerContext_win_dw.h b/src/ports/SkScalerContext_win_dw.h index aa36194aa5..2a1f97074d 100644 --- a/src/ports/SkScalerContext_win_dw.h +++ b/src/ports/SkScalerContext_win_dw.h @@ -47,6 +47,8 @@ private: bool isColorGlyph(const SkGlyph& glyph); + bool isPngGlyph(const SkGlyph& glyph); + DWriteFontTypeface* getDWriteTypeface() { return static_cast<DWriteFontTypeface*>(this->getTypeface()); } @@ -57,6 +59,11 @@ private: void generateColorGlyphImage(const SkGlyph& glyph); + void generatePngMetrics(SkGlyph* glyph); + + void generatePngGlyphImage(const SkGlyph& glyph); + + SkTDArray<uint8_t> fBits; /** The total matrix without the text height scale. */ SkMatrix fSkXform; |