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

Issue 2542743002: Fix initial kerning when there is a horzscale set (Closed)

Created:
4 years ago by npm
Modified:
4 years ago
Reviewers:
Tom Sepez, Wei Li
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Fix initial kerning when there is a horzscale set Reasoning: the pTextAdvanceX in CPDF_TextObject::CalcPositionData is being multiplied by horz_scale in CPDF_TextObject::CalcPositionData. Then, m_pCurStates->m_TextX is updated by this amount. So multiply by the scale also when updating with initial and final kerning and when nsegs = 0. BUG=528103 Committed: https://pdfium.googlesource.com/pdfium/+/c62980ec7539fa5ae2065ba5f287aada3a814173

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M core/fpdfapi/page/cpdf_streamcontentparser.cpp View 3 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
npm
ptal
4 years ago (2016-11-30 22:43:52 UTC) #3
Tom Sepez
LGTM, but will this cause our reference test output .pngs to diff?
4 years ago (2016-11-30 23:06:01 UTC) #4
npm
On 2016/11/30 23:06:01, Tom Sepez wrote: > LGTM, but will this cause our reference test ...
4 years ago (2016-11-30 23:07:18 UTC) #5
npm
On 2016/11/30 23:07:18, npm wrote: > On 2016/11/30 23:06:01, Tom Sepez wrote: > > LGTM, ...
4 years ago (2016-11-30 23:07:58 UTC) #8
npm
On 2016/11/30 23:07:58, npm wrote: > On 2016/11/30 23:07:18, npm wrote: > > On 2016/11/30 ...
4 years ago (2016-11-30 23:16:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2542743002/1
4 years ago (2016-11-30 23:22:56 UTC) #13
commit-bot: I haz the power
4 years ago (2016-11-30 23:23:15 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://pdfium.googlesource.com/pdfium/+/c62980ec7539fa5ae2065ba5f287aada3a81...

Powered by Google App Engine
This is Rietveld 408576698