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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 // TODO(edisonn): warning/report | 308 // TODO(edisonn): warning/report |
309 printf("Unknown CIDToGIDMap: %s\n", name); | 309 printf("Unknown CIDToGIDMap: %s\n", name); |
310 #endif | 310 #endif |
311 return NULL; | 311 return NULL; |
312 } | 312 } |
313 CIDToGIDMap* fCidToGid; | 313 CIDToGIDMap* fCidToGid; |
314 */ | 314 */ |
315 | 315 |
316 class SkPdfType3Font : public SkPdfFont { | 316 class SkPdfType3Font : public SkPdfFont { |
317 struct Type3FontChar { | 317 struct Type3FontChar { |
318 const SkPdfObject* fObj; | 318 SkPdfObject* fObj; |
319 double fWidth; | 319 double fWidth; |
320 }; | 320 }; |
321 | 321 |
322 SkPdfDictionary* fCharProcs; | 322 SkPdfDictionary* fCharProcs; |
323 SkPdfEncodingDictionary* fEncodingDict; | 323 SkPdfEncodingDictionary* fEncodingDict; |
324 unsigned int fFirstChar; | 324 unsigned int fFirstChar; |
325 unsigned int fLastChar; | 325 unsigned int fLastChar; |
326 | 326 |
327 SkRect fFontBBox; | 327 SkRect fFontBBox; |
328 SkMatrix fFonMatrix; | 328 SkMatrix fFonMatrix; |
(...skipping 82 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 |