Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5531)

Issue 4082042: Add Truetype and Type 1 font embedding support (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by Steve VanDeBogart
Modified:
13 years, 5 months ago
Reviewers:
agl, reed1
CC:
skia-review_googlegroups.com, James Hawkins, Chris Guillory
Base URL:
http://skia.googlecode.com/svn/trunk/src/ports
Visibility:
Public.

Description

Add Truetype and Type 1 font embedding support Sorry this is such a large CL. It was very exploratory for me to make this work. - Add an interface to SkFontHost to retrieve font information and provide NULL implementations on all platforms except Linux. - Segment large Type 1 fonts into fonts with shared resources with 255 glyphs each. - Convert the various Type 1 formats to the form PDF wants. - Update font as we draw text instead of as part of the graphical state. - Remove built-in font support, we can't really use it. Other changes I can pull out to a separate CL if you like. - Add SkTScopedPtr class. - Fix double free of resources. - Fix bug in resource unique-ifying code. - Don't print anything for any empty clip path. - Fix copy paste error - MiterLimit. - Fix sign extension bug in SkPDFString - Fix FlateTest rename that was missed on a previous commit. Committed: http://code.google.com/p/skia/source/detail?r=728

Patch Set 1 #

Patch Set 2 : Moved SkPDFTypefaceInfo and updated copyrights. #

Patch Set 3 : Actually add SkPDFTypefaceInfo.h #

Patch Set 4 : Move SkTScopedPtr to its own header #

Total comments: 22

Patch Set 5 : Address comments and remove gratuitous copyright updates. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1530 lines, -200 lines) Patch
M include/core/SkFontHost.h View 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
A include/core/SkTScopedPtr.h View 1 2 3 1 chunk +83 lines, -0 lines 0 comments Download
M include/core/SkTemplates.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkTypeface.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M include/pdf/SkPDFDevice.h View 1 3 chunks +6 lines, -4 lines 0 comments Download
M include/pdf/SkPDFFont.h View 1 2 3 4 3 chunks +65 lines, -22 lines 0 comments Download
A include/pdf/SkPDFTypefaceInfo.h View 1 2 3 1 chunk +122 lines, -0 lines 0 comments Download
M src/core/SkTypeface.cpp View 1 2 chunks +19 lines, -1 line 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 10 chunks +104 lines, -51 lines 0 comments Download
M src/pdf/SkPDFDocument.cpp View 1 3 chunks +19 lines, -5 lines 0 comments Download
M src/pdf/SkPDFFont.cpp View 1 2 3 4 4 chunks +740 lines, -103 lines 0 comments Download
M src/pdf/SkPDFGraphicState.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/pdf/SkPDFTypes.cpp View 1 4 chunks +4 lines, -4 lines 0 comments Download
M src/ports/SkFontHost_FONTPATH.cpp View 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M src/ports/SkFontHost_FreeType.cpp View 1 2 3 4 2 chunks +285 lines, -3 lines 0 comments Download
M src/ports/SkFontHost_android.cpp View 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M src/ports/SkFontHost_fontconfig.cpp View 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M src/ports/SkFontHost_mac_atsui.cpp View 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M src/ports/SkFontHost_mac_coretext.cpp View 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M src/ports/SkFontHost_none.cpp View 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M src/ports/SkFontHost_simple.cpp View 1 2 chunks +22 lines, -0 lines 0 comments Download
M src/ports/SkFontHost_win.cpp View 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M tests/FlateTest.cpp View 1 2 3 4 5 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 12
Steve VanDeBogart
13 years, 5 months ago (2011-01-19 23:40:12 UTC) #1
reed1
Lets move SkPDFTypefaceInfo into its own header.
13 years, 5 months ago (2011-01-20 12:48:40 UTC) #2
reed1
Do we need SkTScopedPtr and SkAutoTDelete? Can we combine these two classes somehow? Perhaps we ...
13 years, 5 months ago (2011-01-20 12:53:57 UTC) #3
reed1
oops, not shared_ptr. I mean unique_ptr
13 years, 5 months ago (2011-01-20 13:53:03 UTC) #4
Steve VanDeBogart
On 2011/01/20 12:48:40, reed1 wrote: > Lets move SkPDFTypefaceInfo into its own header. Done. On ...
13 years, 5 months ago (2011-01-20 22:25:01 UTC) #5
reed1
Lets move SkTScopedPtr into its own header, just for clarity. We can continue the exploration ...
13 years, 5 months ago (2011-01-20 22:38:58 UTC) #6
Steve VanDeBogart
On 2011/01/20 22:38:58, reed1 wrote: > Lets move SkTScopedPtr into its own header, just for ...
13 years, 5 months ago (2011-01-20 22:54:54 UTC) #7
Steve VanDeBogart
agl, ping. I see you will be offsite most of this week. No rush on ...
13 years, 5 months ago (2011-01-25 00:23:11 UTC) #8
agl
LGTM http://codereview.appspot.com/4082042/diff/12001/include/core/SkFontHost.h File include/core/SkFontHost.h (right): http://codereview.appspot.com/4082042/diff/12001/include/core/SkFontHost.h#newcode2 include/core/SkFontHost.h:2: * Copyright (C) 2011 The Android Open Source ...
13 years, 5 months ago (2011-01-25 15:37:27 UTC) #9
Steve VanDeBogart
Thanks for the review. http://codereview.appspot.com/4082042/diff/12001/include/core/SkFontHost.h File include/core/SkFontHost.h (right): http://codereview.appspot.com/4082042/diff/12001/include/core/SkFontHost.h#newcode2 include/core/SkFontHost.h:2: * Copyright (C) 2011 The ...
13 years, 5 months ago (2011-01-25 21:00:10 UTC) #10
agl
On Tue, Jan 25, 2011 at 4:00 PM, <vandebo@chromium.org> wrote: > Thanks for the review. ...
13 years, 5 months ago (2011-01-26 13:51:06 UTC) #11
agl
13 years, 5 months ago (2011-01-26 13:51:08 UTC) #12
On Tue, Jan 25, 2011 at 4:00 PM,  <vandebo@chromium.org> wrote:
> Thanks for the review.

LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b