diff options
author | Hal Canary <halcanary@google.com> | 2018-04-10 11:13:24 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-07 20:07:57 +0000 |
commit | 5bdc4d590b905b3d3fba0da80051ac576e705e2c (patch) | |
tree | 03a033f7bcf43ccab3ed5b3c857a78e930b5429f /include/core | |
parent | e0b7f5cb0c3ebc14eb1493217876d7243039a801 (diff) |
SkAdvancedTypefaceMetrics: simplify more
Change-Id: I80c28c50aa96c28181d2fef13daad4a80ec91a12
Reviewed-on: https://skia-review.googlesource.com/120160
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkTypeface.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkTypeface.h b/include/core/SkTypeface.h index b55ac4ecb3..37878cc390 100644 --- a/include/core/SkTypeface.h +++ b/include/core/SkTypeface.h @@ -313,6 +313,10 @@ protected: // Subclasses *must* override this method to work with the PDF backend. virtual std::unique_ptr<SkAdvancedTypefaceMetrics> onGetAdvancedMetrics() const; + // For type1 postscript fonts only, set the glyph names for each glyph. + // destination array is non-null, and points to an array of size this->countGlyphs(). + // Backends that do not suport type1 fonts should not override. + virtual void getPostScriptGlyphNames(SkString*) const {} virtual SkStreamAsset* onOpenStream(int* ttcIndex) const = 0; // TODO: make pure virtual. |