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

Unified Diff: experimental/PdfViewer/autogen/SkPdfPodofoMapper_autogen.cpp

Issue 18059003: Basic load base font when specified in a FontDescriptor. basic load of TrueType font (FontFile2) (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 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 | « experimental/PdfViewer/SkPdfFont.cpp ('k') | experimental/PdfViewer/autogen/pdfspec_autogen.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/autogen/SkPdfPodofoMapper_autogen.cpp
===================================================================
--- experimental/PdfViewer/autogen/SkPdfPodofoMapper_autogen.cpp (revision 9773)
+++ experimental/PdfViewer/autogen/SkPdfPodofoMapper_autogen.cpp (working copy)
@@ -3476,6 +3476,10 @@
}
bool isFontDescriptorDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
+ std::string Type;
+ if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Type", "", &Type)) return false;
+ if ((Type != "FontDescriptor")) return false;
+
return true;
}
« no previous file with comments | « experimental/PdfViewer/SkPdfFont.cpp ('k') | experimental/PdfViewer/autogen/pdfspec_autogen.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698