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

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

Issue 27057003: pdfviewer: more code comments + concat the pdf matrix with the existing matrix in canvas, instead o… (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 2 months 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.
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
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
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