aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkAdvancedTypefaceMetrics.h
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2017-03-06 16:18:49 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-08 16:35:24 +0000
commitaa3af7b4692932c4fab4109b2d9f29ae40e49ad5 (patch)
treec08b4e6655ed5c29befb3ac336190a993e3ecdca /src/core/SkAdvancedTypefaceMetrics.h
parent8de05ffcb26c757a6169e217ef46105286811dd9 (diff)
SkPDF: Always get advances at unitsPerEm.
* Work around BUG=chromium:696356 * SkTestScalerContext needs a return a em-size. * SkPDFFont::MakeVectorCache which always produces a glyph cache at emsize. Replaces vector_cache(). * Stop looking at fLastGlyphID and fEmSize in TypefaceMetrics. Change-Id: I28d93b8f62d461a60fa046e9aaf7fa6d116a7ee5 Reviewed-on: https://skia-review.googlesource.com/9324 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'src/core/SkAdvancedTypefaceMetrics.h')
-rw-r--r--src/core/SkAdvancedTypefaceMetrics.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/core/SkAdvancedTypefaceMetrics.h b/src/core/SkAdvancedTypefaceMetrics.h
index 17255ab217..61f1f1e9bd 100644
--- a/src/core/SkAdvancedTypefaceMetrics.h
+++ b/src/core/SkAdvancedTypefaceMetrics.h
@@ -26,8 +26,6 @@ public:
SkAdvancedTypefaceMetrics()
: fType(SkAdvancedTypefaceMetrics::kOther_Font)
, fFlags((FontFlags)0)
- , fLastGlyphID(0)
- , fEmSize(0)
, fStyle((StyleFlags)0)
, fItalicAngle(0)
, fAscent(0)
@@ -59,9 +57,6 @@ public:
};
FontFlags fFlags; // Global font flags.
- uint16_t fLastGlyphID; // The last valid glyph ID in the font.
- uint16_t fEmSize; // The size of the em box (defines font units).
-
// These enum values match the values used in the PDF file format.
enum StyleFlags : uint32_t {
kFixedPitch_Style = 0x00000001,