OLD | NEW |
1 #ifndef __DEFINED__SkPdfFont | 1 /* |
2 #define __DEFINED__SkPdfFont | 2 * Copyright 2013 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
| 8 #ifndef SkPdfFont_DEFINED |
| 9 #define SkPdfFont_DEFINED |
3 | 10 |
4 #include "SkPdfHeaders_autogen.h" | 11 #include "SkPdfHeaders_autogen.h" |
5 #include "SkPdfMapper_autogen.h" | 12 #include "SkPdfMapper_autogen.h" |
6 | 13 |
7 #include "SkTypeface.h" | 14 #include "SkTypeface.h" |
8 #include "SkUtils.h" | 15 #include "SkUtils.h" |
9 #include "SkPdfGraphicsState.h" | 16 #include "SkPdfGraphicsState.h" |
10 #include "SkPdfUtils.h" | 17 #include "SkPdfUtils.h" |
11 #include "SkTDict.h" | 18 #include "SkTDict.h" |
12 | 19 |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 pdfContext->fGraphicsState.fMatrixTm.preTranslate(SkDoubleToScalar(pdfCo
ntext->fGraphicsState.fCurFontSize * fChars[ch - fFirstChar].fWidth), | 440 pdfContext->fGraphicsState.fMatrixTm.preTranslate(SkDoubleToScalar(pdfCo
ntext->fGraphicsState.fCurFontSize * fChars[ch - fFirstChar].fWidth), |
434 SkDoubleToScalar(0.0)); | 441 SkDoubleToScalar(0.0)); |
435 return fChars[ch - fFirstChar].fWidth; | 442 return fChars[ch - fFirstChar].fWidth; |
436 } | 443 } |
437 | 444 |
438 virtual void afterWord(SkPaint* paint, SkMatrix* matrix) { | 445 virtual void afterWord(SkPaint* paint, SkMatrix* matrix) { |
439 | 446 |
440 } | 447 } |
441 }; | 448 }; |
442 | 449 |
443 #endif // __DEFINED__SkPdfFont | 450 #endif // SkPdfFont_DEFINED |
OLD | NEW |