Index: src/pdf/SkPDFFont.cpp |
diff --git a/src/pdf/SkPDFFont.cpp b/src/pdf/SkPDFFont.cpp |
index 27b5a4518abbcd5aa6d31a0b433d34f00ac45657..cc84a67f7099f1a3a1d0a5c16194d5ceb9ab8577 100644 |
--- a/src/pdf/SkPDFFont.cpp |
+++ b/src/pdf/SkPDFFont.cpp |
@@ -1343,13 +1343,13 @@ bool SkPDFType3Font::populate(uint16_t glyphID) { |
encDiffs->appendName(characterName.c_str()); |
const SkGlyph& glyph = cache->getGlyphIDMetrics(gID); |
- widthArray->appendScalar(SkFixedToScalar(glyph.fAdvanceX)); |
+ widthArray->appendScalar(SkFloatToScalar(glyph.fAdvanceX)); |
SkIRect glyphBBox = SkIRect::MakeXYWH(glyph.fLeft, glyph.fTop, |
glyph.fWidth, glyph.fHeight); |
bbox.join(glyphBBox); |
SkDynamicMemoryWStream content; |
- setGlyphWidthAndBoundingBox(SkFixedToScalar(glyph.fAdvanceX), glyphBBox, |
+ setGlyphWidthAndBoundingBox(SkFloatToScalar(glyph.fAdvanceX), glyphBBox, |
&content); |
const SkPath* path = cache->findPath(glyph); |
if (path) { |