aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/pdf/SkPDFFont.h
diff options
context:
space:
mode:
authorGravatar vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-09 18:13:47 +0000
committerGravatar vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-09 18:13:47 +0000
commit6744d498fcbbbcf503ec80c4d43dd8f118a88597 (patch)
tree855c458a26e42d13ff29f9aa51266f5e151b9569 /include/pdf/SkPDFFont.h
parent339ac3d0a7650c98de35afbcff4ac1d5b47199c0 (diff)
[PDF] Add a ToUnicode mapping for fonts.
This makes text in PDFs searchable and copy&paste-able. Code from arthurhsu@chromium.org. Original review: http://codereview.appspot.com/4428082/ Review URL: http://codereview.appspot.com/4525042 git-svn-id: http://skia.googlecode.com/svn/trunk@1280 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/pdf/SkPDFFont.h')
-rw-r--r--include/pdf/SkPDFFont.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pdf/SkPDFFont.h b/include/pdf/SkPDFFont.h
index ba316e8495..45e4195345 100644
--- a/include/pdf/SkPDFFont.h
+++ b/include/pdf/SkPDFFont.h
@@ -130,6 +130,7 @@ private:
*/
void populateType3Font(int16_t glyphID);
bool addFontDescriptor(int16_t defaultWidth);
+ void populateToUnicodeTable();
void addWidthInfoFromRange(int16_t defaultWidth,
const SkAdvancedTypefaceMetrics::WidthRange* widthRangeEntry);
/** Set fFirstGlyphID and fLastGlyphID to span at most 255 glyphs,