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

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

Issue 21125002: pdfviewer: more plumming for soft masks (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 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 | « experimental/PdfViewer/SkPdfBasics.h ('k') | experimental/PdfViewer/SkPdfFont.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef __DEFINED__SkPdfFont 1 #ifndef __DEFINED__SkPdfFont
2 #define __DEFINED__SkPdfFont 2 #define __DEFINED__SkPdfFont
3 3
4 #include "SkPdfHeaders_autogen.h" 4 #include "SkPdfHeaders_autogen.h"
5 #include "SkPdfMapper_autogen.h" 5 #include "SkPdfMapper_autogen.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 9
10 #include "SkTypeface.h" 10 #include "SkTypeface.h"
(...skipping 29 matching lines...) Expand all
40 SkTypeface* SkTypefaceFromPdfStandardFont(const char* fontName, bool bold, bool italic); 40 SkTypeface* SkTypefaceFromPdfStandardFont(const char* fontName, bool bold, bool italic);
41 SkPdfFont* fontFromName(SkNativeParsedPDF* doc, SkPdfObject* obj, const char* fo ntName); 41 SkPdfFont* fontFromName(SkNativeParsedPDF* doc, SkPdfObject* obj, const char* fo ntName);
42 42
43 struct SkUnencodedText { 43 struct SkUnencodedText {
44 void* text; 44 void* text;
45 int len; 45 int len;
46 46
47 public: 47 public:
48 SkUnencodedText(const SkPdfString* obj) { 48 SkUnencodedText(const SkPdfString* obj) {
49 text = (void*)obj->c_str(); 49 text = (void*)obj->c_str();
50 len = obj->len(); 50 len = obj->lenstr();
51 } 51 }
52 }; 52 };
53 53
54 struct SkDecodedText { 54 struct SkDecodedText {
55 uint16_t* text; 55 uint16_t* text;
56 int len; 56 int len;
57 public: 57 public:
58 unsigned int operator[](int i) const { return text[i]; } 58 unsigned int operator[](int i) const { return text[i]; }
59 int size() const { return len; } 59 int size() const { return len; }
60 }; 60 };
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 SkDoubleToScalar(0.0)); 411 SkDoubleToScalar(0.0));
412 return fChars[ch - fFirstChar].fWidth; 412 return fChars[ch - fFirstChar].fWidth;
413 } 413 }
414 414
415 virtual void afterWord(SkPaint* paint, SkMatrix* matrix) { 415 virtual void afterWord(SkPaint* paint, SkMatrix* matrix) {
416 416
417 } 417 }
418 }; 418 };
419 419
420 #endif // __DEFINED__SkPdfFont 420 #endif // __DEFINED__SkPdfFont
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkPdfBasics.h ('k') | experimental/PdfViewer/SkPdfFont.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698