| OLD | NEW |
| 1 #include "SkPdfFont.h" | 1 #include "SkPdfFont.h" |
| 2 #include "SkPdfParser.h" |
| 2 | 3 |
| 3 std::map<std::string, SkPdfStandardFontEntry>& getStandardFonts() { | 4 std::map<std::string, SkPdfStandardFontEntry>& getStandardFonts() { |
| 4 static std::map<std::string, SkPdfStandardFontEntry> gPdfStandardFonts; | 5 static std::map<std::string, SkPdfStandardFontEntry> gPdfStandardFonts; |
| 5 | 6 |
| 6 // TODO (edisonn): , vs - ? what does it mean? | 7 // TODO (edisonn): , vs - ? what does it mean? |
| 7 // TODO (edisonn): MT, PS, Oblique=italic?, ... what does it mean? | 8 // TODO (edisonn): MT, PS, Oblique=italic?, ... what does it mean? |
| 8 if (gPdfStandardFonts.empty()) { | 9 if (gPdfStandardFonts.empty()) { |
| 9 gPdfStandardFonts["Arial"] = {"Arial", false, false}; | 10 gPdfStandardFonts["Arial"] = {"Arial", false, false}; |
| 10 gPdfStandardFonts["Arial,Bold"] = {"Arial", true, false}; | 11 gPdfStandardFonts["Arial,Bold"] = {"Arial", true, false}; |
| 11 gPdfStandardFonts["Arial,BoldItalic"] = {"Arial", true, true}; | 12 gPdfStandardFonts["Arial,BoldItalic"] = {"Arial", true, true}; |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 SkPdfEncoding* SkPdfEncoding::fromName(const char* name) { | 369 SkPdfEncoding* SkPdfEncoding::fromName(const char* name) { |
| 369 SkPdfEncoding* encoding = getStandardEncodings()[name]; | 370 SkPdfEncoding* encoding = getStandardEncodings()[name]; |
| 370 | 371 |
| 371 #ifdef PDF_TRACE | 372 #ifdef PDF_TRACE |
| 372 if (encoding == NULL) { | 373 if (encoding == NULL) { |
| 373 printf("Encoding not found: %s\n", name); | 374 printf("Encoding not found: %s\n", name); |
| 374 } | 375 } |
| 375 #endif | 376 #endif |
| 376 return encoding; | 377 return encoding; |
| 377 } | 378 } |
| OLD | NEW |