Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1248)

Unified Diff: include/pdf/SkPDFFont.h

Issue 4273041: Use Type3 fonts for platforms that don't yet support SkFontHost::GetAdvancedTypefaceMetrics. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Address comments Created 13 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/pdf/SkPDFFont.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | src/pdf/SkPDFFont.cpp » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b