Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Unified Diff: experimental/PdfViewer/SkPdfFont.h

Issue 19670019: pdfviewer: fix type3 font, make SkPdfObject::get parameter const (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | experimental/PdfViewer/pdfparser/native/SkPdfObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/SkPdfFont.h
===================================================================
--- experimental/PdfViewer/SkPdfFont.h (revision 10286)
+++ experimental/PdfViewer/SkPdfFont.h (working copy)
@@ -337,8 +337,8 @@
if (dict->isEncodingAName(parsed)) {
fEncoding = SkPdfEncoding::fromName(dict->getEncodingAsName(parsed).c_str());
} else if (dict->isEncodingAEncodingdictionary(parsed)) {
- // technically, there is no encoding.
- fEncoding = SkPdfCIDToGIDMapIdentityEncoding::instance();
+ // No encoding.
+ fEncoding = SkPdfDefaultEncoding::instance();
fEncodingDict = dict->getEncodingAsEncodingdictionary(parsed);
}
}
@@ -381,7 +381,7 @@
if (j < fFirstChar || j > fLastChar) {
printf("break; error 2\n");
}
- fChars[j - fFirstChar].fObj = fCharProcs->get((*diffs)[i]->nameValue());
+ fChars[j - fFirstChar].fObj = fCharProcs->get((*diffs)[i]);
j++;
} else {
// err
« no previous file with comments | « no previous file | experimental/PdfViewer/pdfparser/native/SkPdfObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698