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

Issue 137923005: Drawing fake bold text, line and normal text made normal text bolder on PDF. (Closed)

Created:
6 years, 10 months ago by yuki.sekiguchi
Modified:
6 years, 10 months ago
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Drawing fake bold text, line and normal text made normal text bolder on PDF. When PDF uses fake bold text, it uses stroke and fill for the text. After that, line is drawn. It creates new ContextEntry which GraphicStateEntry has 0 fTextScaleX. Since fTextScaleX is 0, GraphicStackState::updateDrawingState() doesn't update text fill mode or the PDF page. When the normal text is drawn, it reuse the line's ContextEntry because GraphicStateEntry::compareInitialState() returns true. However, since the reused GraphicsStateEntry's fTextScaleX is 0, the text fill mode is not updated to fill, and the text is drawn in stroke and fill mode. When the fTextScaleX is changed, we should not reuse GraphicStateEntry even if ether of fTextScaleX is 0. BUG=skia:2132 Committed: http://code.google.com/p/skia/source/detail?r=13369

Patch Set 1 #

Total comments: 1

Patch Set 2 : Made comparing more strict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -9 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 1 chunk +8 lines, -9 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
yuki.sekiguchi
Hi reed, Could you review my CL? This is my first CL to skia, so ...
6 years, 10 months ago (2014-02-05 08:28:29 UTC) #1
reed1
6 years, 10 months ago (2014-02-05 13:45:01 UTC) #2
vandebo (ex-Chrome)
https://codereview.chromium.org/137923005/diff/1/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/137923005/diff/1/src/pdf/SkPDFDevice.cpp#newcode241 src/pdf/SkPDFDevice.cpp:241: fTextScaleX == b.fTextScaleX && This will work, but I ...
6 years, 10 months ago (2014-02-05 22:07:08 UTC) #3
yuki.sekiguchi
On 2014/02/05 22:07:08, vandebo wrote: > https://codereview.chromium.org/137923005/diff/1/src/pdf/SkPDFDevice.cpp > File src/pdf/SkPDFDevice.cpp (right): > > https://codereview.chromium.org/137923005/diff/1/src/pdf/SkPDFDevice.cpp#newcode241 > ...
6 years, 10 months ago (2014-02-06 02:39:04 UTC) #4
yuki.sekiguchi
Hi vandebo, I fixed your comment. Could you review this?
6 years, 10 months ago (2014-02-06 02:40:50 UTC) #5
vandebo (ex-Chrome)
On 2014/02/06 02:40:50, yuki.sekiguchi wrote: > Hi vandebo, > > I fixed your comment. Could ...
6 years, 10 months ago (2014-02-06 16:45:00 UTC) #6
yuki.sekiguchi
On 2014/02/06 16:45:00, vandebo wrote: > On 2014/02/06 02:40:50, yuki.sekiguchi wrote: > > Hi vandebo, ...
6 years, 10 months ago (2014-02-07 00:38:02 UTC) #7
hcm
On 2014/02/07 00:38:02, yuki.sekiguchi wrote: > On 2014/02/06 16:45:00, vandebo wrote: > > On 2014/02/06 ...
6 years, 10 months ago (2014-02-07 18:51:59 UTC) #8
vandebo (ex-Chrome)
LGTM
6 years, 10 months ago (2014-02-07 19:12:23 UTC) #9
vandebo (ex-Chrome)
The CQ bit was checked by vandebo@chromium.org
6 years, 10 months ago (2014-02-07 19:12:28 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/yuki.sekiguchi@access-company.com/137923005/90001
6 years, 10 months ago (2014-02-07 19:12:34 UTC) #11
commit-bot: I haz the power
6 years, 10 months ago (2014-02-07 19:39:59 UTC) #12
Message was sent while issue was closed.
Change committed as 13369

Powered by Google App Engine
This is Rietveld 408576698