OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
| 8 // TODO(edisonn): this file not commented much on purpose. |
| 9 // It will probably need heavy refactoring soon anyway to support all encodings,
fonts and |
| 10 // proper text sizing and spacing |
| 11 |
8 #ifndef SkPdfFont_DEFINED | 12 #ifndef SkPdfFont_DEFINED |
9 #define SkPdfFont_DEFINED | 13 #define SkPdfFont_DEFINED |
10 | 14 |
11 #include "SkPdfGraphicsState.h" | 15 #include "SkPdfGraphicsState.h" |
12 #include "SkPdfHeaders_autogen.h" | 16 #include "SkPdfHeaders_autogen.h" |
13 #include "SkPdfMapper_autogen.h" | 17 #include "SkPdfMapper_autogen.h" |
14 #include "SkPdfUtils.h" | 18 #include "SkPdfUtils.h" |
15 #include "SkTypeface.h" | 19 #include "SkTypeface.h" |
16 #include "SkTDict.h" | 20 #include "SkTDict.h" |
17 #include "SkUtils.h" | 21 #include "SkUtils.h" |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 SkDoubleToScalar(pdfContext->fGraphicsState.fCurFontSize * | 467 SkDoubleToScalar(pdfContext->fGraphicsState.fCurFontSize * |
464 fChars[ch - fFirstChar].fWidth), | 468 fChars[ch - fFirstChar].fWidth), |
465 SkDoubleToScalar(0.0)); | 469 SkDoubleToScalar(0.0)); |
466 return fChars[ch - fFirstChar].fWidth; | 470 return fChars[ch - fFirstChar].fWidth; |
467 } | 471 } |
468 | 472 |
469 virtual void afterWord(SkPaint* paint, SkMatrix* matrix) {} | 473 virtual void afterWord(SkPaint* paint, SkMatrix* matrix) {} |
470 }; | 474 }; |
471 | 475 |
472 #endif // SkPdfFont_DEFINED | 476 #endif // SkPdfFont_DEFINED |
OLD | NEW |