OLD | NEW |
1 #include "SkPdfFont.h" | 1 #include "SkPdfFont.h" |
2 #include "SkPdfParser.h" | |
3 | 2 |
4 #include "SkStream.h" | 3 #include "SkStream.h" |
5 #include "SkTypeface.h" | 4 #include "SkTypeface.h" |
6 #include "SkPdfNativeTokenizer.h" | 5 #include "SkPdfNativeTokenizer.h" |
7 | 6 |
8 std::map<std::string, SkPdfStandardFontEntry>& getStandardFonts() { | 7 std::map<std::string, SkPdfStandardFontEntry>& getStandardFonts() { |
9 static std::map<std::string, SkPdfStandardFontEntry> gPdfStandardFonts; | 8 static std::map<std::string, SkPdfStandardFontEntry> gPdfStandardFonts; |
10 | 9 |
11 // TODO (edisonn): , vs - ? what does it mean? | 10 // TODO (edisonn): , vs - ? what does it mean? |
12 // TODO (edisonn): MT, PS, Oblique=italic?, ... what does it mean? | 11 // TODO (edisonn): MT, PS, Oblique=italic?, ... what does it mean? |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 SkPdfEncoding* SkPdfEncoding::fromName(const char* name) { | 442 SkPdfEncoding* SkPdfEncoding::fromName(const char* name) { |
444 SkPdfEncoding* encoding = getStandardEncodings()[name]; | 443 SkPdfEncoding* encoding = getStandardEncodings()[name]; |
445 | 444 |
446 #ifdef PDF_TRACE | 445 #ifdef PDF_TRACE |
447 if (encoding == NULL) { | 446 if (encoding == NULL) { |
448 printf("Encoding not found: %s\n", name); | 447 printf("Encoding not found: %s\n", name); |
449 } | 448 } |
450 #endif | 449 #endif |
451 return encoding; | 450 return encoding; |
452 } | 451 } |
OLD | NEW |