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; |
} |