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

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

Issue 18435007: pdf viewer: refactor and fix a bug (SkPdfobject should not reset on destruct) (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 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/SkPdfParser.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 #include "SkPdfFont.h" 1 #include "SkPdfFont.h"
2 #include "SkPdfParser.h"
3 2
4 #include "SkStream.h" 3 #include "SkStream.h"
5 #include "SkTypeface.h" 4 #include "SkTypeface.h"
6 #include "SkPdfNativeTokenizer.h" 5 #include "SkPdfNativeTokenizer.h"
7 6
8 std::map<std::string, SkPdfStandardFontEntry>& getStandardFonts() { 7 std::map<std::string, SkPdfStandardFontEntry>& getStandardFonts() {
9 static std::map<std::string, SkPdfStandardFontEntry> gPdfStandardFonts; 8 static std::map<std::string, SkPdfStandardFontEntry> gPdfStandardFonts;
10 9
11 // TODO (edisonn): , vs - ? what does it mean? 10 // TODO (edisonn): , vs - ? what does it mean?
12 // TODO (edisonn): MT, PS, Oblique=italic?, ... what does it mean? 11 // TODO (edisonn): MT, PS, Oblique=italic?, ... what does it mean?
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 SkPdfEncoding* SkPdfEncoding::fromName(const char* name) { 442 SkPdfEncoding* SkPdfEncoding::fromName(const char* name) {
444 SkPdfEncoding* encoding = getStandardEncodings()[name]; 443 SkPdfEncoding* encoding = getStandardEncodings()[name];
445 444
446 #ifdef PDF_TRACE 445 #ifdef PDF_TRACE
447 if (encoding == NULL) { 446 if (encoding == NULL) {
448 printf("Encoding not found: %s\n", name); 447 printf("Encoding not found: %s\n", name);
449 } 448 }
450 #endif 449 #endif
451 return encoding; 450 return encoding;
452 } 451 }
OLDNEW
« no previous file with comments | « no previous file | experimental/PdfViewer/SkPdfParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698