Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: experimental/PdfViewer/SkPdfFont.h

Issue 77763007: Move SkPdfContext into its own files. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | experimental/PdfViewer/SkPdfGraphicsState.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | experimental/PdfViewer/SkPdfGraphicsState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698