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

Issue 24364008: Update PDF backend to support fallback fonts on Android. (Closed)

Created:
7 years, 3 months ago by djsollen
Modified:
7 years, 2 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Update PDF backend to support fallback fonts on Android. R=edisonn@google.com, reed@google.com, vandebo@chromium.org Committed: https://code.google.com/p/skia/source/detail?r=11586

Patch Set 1 #

Total comments: 7

Patch Set 2 : addressing comments #

Patch Set 3 : fix diff explosion #

Patch Set 4 : #

Total comments: 9

Patch Set 5 : test and comments #

Total comments: 2

Patch Set 6 : adding test for real #

Patch Set 7 : testing more fallbacks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -0 lines) Patch
A gm/androidfallback.cpp View 1 2 3 4 5 6 1 chunk +87 lines, -0 lines 0 comments Download
M gyp/gmslides.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M include/ports/SkTypeface_android.h View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 4 2 chunks +122 lines, -0 lines 0 comments Download
M src/ports/SkFontConfigInterface_android.cpp View 1 2 3 4 3 chunks +66 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
djsollen
7 years, 3 months ago (2013-09-24 19:13:04 UTC) #1
vandebo (ex-Chrome)
You should check that copy paste still work when fallback glyphs are used. I don't ...
7 years, 3 months ago (2013-09-24 19:19:25 UTC) #2
djsollen
The copy/paste on my linux machine produced correct results.
7 years, 3 months ago (2013-09-24 19:37:41 UTC) #3
reed1
https://codereview.chromium.org/24364008/diff/1/include/ports/SkTypeface_android.h File include/ports/SkTypeface_android.h (right): https://codereview.chromium.org/24364008/diff/1/include/ports/SkTypeface_android.h#newcode81 include/ports/SkTypeface_android.h:81: SkTypeface* SkGetTypefaceForGlyphID(uint16_t glyphID, const SkTypeface* origTypeface, Does this call ...
7 years, 3 months ago (2013-09-24 20:10:19 UTC) #4
djsollen
https://codereview.chromium.org/24364008/diff/1/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/24364008/diff/1/src/pdf/SkPDFDevice.cpp#newcode1200 src/pdf/SkPDFDevice.cpp:1200: if (usesOriginalTypeface) { On 2013/09/24 20:10:19, reed1 wrote: > ...
7 years, 3 months ago (2013-09-24 20:44:17 UTC) #5
djsollen
I'm hoping to get some more eyes on this before I land it in Android ...
7 years, 2 months ago (2013-10-01 20:25:06 UTC) #6
scroggo
https://codereview.chromium.org/24364008/diff/17001/include/ports/SkTypeface_android.h File include/ports/SkTypeface_android.h (right): https://codereview.chromium.org/24364008/diff/17001/include/ports/SkTypeface_android.h#newcode80 include/ports/SkTypeface_android.h:80: * glyphIDs that this typeface is capable of resovling. ...
7 years, 2 months ago (2013-10-01 21:00:14 UTC) #7
edisonn
LGTM. But the code is fairly complicated, are we comfortable with the test coverage that ...
7 years, 2 months ago (2013-10-02 12:54:23 UTC) #8
vandebo (ex-Chrome)
PDF code LGTM https://codereview.chromium.org/24364008/diff/25001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/24364008/diff/25001/src/pdf/SkPDFDevice.cpp#newcode1229 src/pdf/SkPDFDevice.cpp:1229: SkPaintOptionsAndroid paintOpts = tmpPaint.getPaintOptionsAndroid(); nit: you ...
7 years, 2 months ago (2013-10-02 15:58:02 UTC) #9
djsollen
with the latest patch set I've addressed the comments, but my test case fails for ...
7 years, 2 months ago (2013-10-02 16:16:41 UTC) #10
scroggo
https://codereview.chromium.org/24364008/diff/25001/gyp/gmslides.gypi File gyp/gmslides.gypi (right): https://codereview.chromium.org/24364008/diff/25001/gyp/gmslides.gypi#newcode7 gyp/gmslides.gypi:7: '../gm/androidfallback.cpp', Is this a new file that should be ...
7 years, 2 months ago (2013-10-02 16:21:19 UTC) #11
reed1
SkTypeface is weird - often, for convenience, the type is just SkTypeface* (not const) - ...
7 years, 2 months ago (2013-10-02 16:32:08 UTC) #12
djsollen
Mike, as this is considered a public API I need to get sign-off from you ...
7 years, 2 months ago (2013-10-03 13:17:33 UTC) #13
reed1
lgtm
7 years, 2 months ago (2013-10-03 13:26:35 UTC) #14
djsollen
7 years, 2 months ago (2013-10-03 14:42:27 UTC) #15
Message was sent while issue was closed.
Committed patchset #7 manually as r11586 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698