| 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. | 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 | 9 // It will probably need heavy refactoring soon anyway to support all encodings,
fonts and |
| 10 // proper text sizing and spacing | 10 // proper text sizing and spacing |
| 11 | 11 |
| 12 #ifndef SkPdfFont_DEFINED | 12 #ifndef SkPdfFont_DEFINED |
| 13 #define SkPdfFont_DEFINED | 13 #define SkPdfFont_DEFINED |
| 14 | 14 |
| 15 #include "SkPdfGraphicsState.h" | 15 #include "SkPdfContext.h" |
| 16 #include "SkPdfHeaders_autogen.h" | 16 #include "SkPdfHeaders_autogen.h" |
| 17 #include "SkPdfMapper_autogen.h" | 17 #include "SkPdfMapper_autogen.h" |
| 18 #include "SkPdfUtils.h" | 18 #include "SkPdfUtils.h" |
| 19 #include "SkTypeface.h" | 19 #include "SkTypeface.h" |
| 20 #include "SkTDict.h" | 20 #include "SkTDict.h" |
| 21 #include "SkUtils.h" | 21 #include "SkUtils.h" |
| 22 | 22 |
| 23 class SkPdfType0Font; | 23 class SkPdfType0Font; |
| 24 class SkPdfType1Font; | 24 class SkPdfType1Font; |
| 25 class SkPdfType3Font; | 25 class SkPdfType3Font; |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 SkDoubleToScalar(pdfContext->fGraphicsState.fCurFontSize * | 471 SkDoubleToScalar(pdfContext->fGraphicsState.fCurFontSize * |
| 472 fChars[ch - fFirstChar].fWidth), | 472 fChars[ch - fFirstChar].fWidth), |
| 473 SkDoubleToScalar(0.0)); | 473 SkDoubleToScalar(0.0)); |
| 474 return fChars[ch - fFirstChar].fWidth; | 474 return fChars[ch - fFirstChar].fWidth; |
| 475 } | 475 } |
| 476 | 476 |
| 477 virtual void afterWord(SkPaint* paint, SkMatrix* matrix) {} | 477 virtual void afterWord(SkPaint* paint, SkMatrix* matrix) {} |
| 478 }; | 478 }; |
| 479 | 479 |
| 480 #endif // SkPdfFont_DEFINED | 480 #endif // SkPdfFont_DEFINED |
| OLD | NEW |