| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfFont | 1 #ifndef __DEFINED__SkPdfFont |
| 2 #define __DEFINED__SkPdfFont | 2 #define __DEFINED__SkPdfFont |
| 3 | 3 |
| 4 #include "SkPdfHeaders_autogen.h" | 4 #include "SkPdfHeaders_autogen.h" |
| 5 #include "SkPdfMapper_autogen.h" | 5 #include "SkPdfMapper_autogen.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "SkTypeface.h" | 10 #include "SkTypeface.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 SkTypeface* SkTypefaceFromPdfStandardFont(const char* fontName, bool bold, bool
italic); | 40 SkTypeface* SkTypefaceFromPdfStandardFont(const char* fontName, bool bold, bool
italic); |
| 41 SkPdfFont* fontFromName(SkNativeParsedPDF* doc, SkPdfObject* obj, const char* fo
ntName); | 41 SkPdfFont* fontFromName(SkNativeParsedPDF* doc, SkPdfObject* obj, const char* fo
ntName); |
| 42 | 42 |
| 43 struct SkUnencodedText { | 43 struct SkUnencodedText { |
| 44 void* text; | 44 void* text; |
| 45 int len; | 45 int len; |
| 46 | 46 |
| 47 public: | 47 public: |
| 48 SkUnencodedText(const SkPdfString* obj) { | 48 SkUnencodedText(const SkPdfString* obj) { |
| 49 text = (void*)obj->c_str(); | 49 text = (void*)obj->c_str(); |
| 50 len = obj->len(); | 50 len = obj->lenstr(); |
| 51 } | 51 } |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 struct SkDecodedText { | 54 struct SkDecodedText { |
| 55 uint16_t* text; | 55 uint16_t* text; |
| 56 int len; | 56 int len; |
| 57 public: | 57 public: |
| 58 unsigned int operator[](int i) const { return text[i]; } | 58 unsigned int operator[](int i) const { return text[i]; } |
| 59 int size() const { return len; } | 59 int size() const { return len; } |
| 60 }; | 60 }; |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 SkDoubleToScalar(0.0)); | 411 SkDoubleToScalar(0.0)); |
| 412 return fChars[ch - fFirstChar].fWidth; | 412 return fChars[ch - fFirstChar].fWidth; |
| 413 } | 413 } |
| 414 | 414 |
| 415 virtual void afterWord(SkPaint* paint, SkMatrix* matrix) { | 415 virtual void afterWord(SkPaint* paint, SkMatrix* matrix) { |
| 416 | 416 |
| 417 } | 417 } |
| 418 }; | 418 }; |
| 419 | 419 |
| 420 #endif // __DEFINED__SkPdfFont | 420 #endif // __DEFINED__SkPdfFont |
| OLD | NEW |