Index: include/pdf/SkPDFFont.h |
diff --git a/include/pdf/SkPDFFont.h b/include/pdf/SkPDFFont.h |
index 8bdc51cd9bd063e78b05219f24c44a684c288647..ba316e8495ff1377d1202eab82f215938468557a 100644 |
--- a/include/pdf/SkPDFFont.h |
+++ b/include/pdf/SkPDFFont.h |
@@ -120,7 +120,7 @@ private: |
void populateType0Font(); |
void populateCIDFont(); |
- bool populateType1Font(); |
+ bool populateType1Font(int16_t glyphID); |
/** Populate the PDF font dictionary as Type3 font which includes glyph |
* descriptions with instructions for painting the glyphs. This function |
@@ -128,10 +128,14 @@ private: |
* information including glyph paths are queried from the platform |
* dependent SkGlyphCache. |
*/ |
- void populateType3Font(); |
+ void populateType3Font(int16_t glyphID); |
bool addFontDescriptor(int16_t defaultWidth); |
void addWidthInfoFromRange(int16_t defaultWidth, |
const SkAdvancedTypefaceMetrics::WidthRange* widthRangeEntry); |
+ /** Set fFirstGlyphID and fLastGlyphID to span at most 255 glyphs, |
+ * including the passed glyphID. |
+ */ |
+ void adjustGlyphRangeForSingleByteEncoding(int16_t glyphID); |
static bool find(uint32_t fontID, uint16_t glyphID, int* index); |
}; |