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

Issue 2461743002: Use CompositeMask instead of TransferBitmap when drawing type 3 text (Closed)

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

Description

Use CompositeMask instead of TransferBitmap when drawing type 3 text TransferBitmap seems to work improperly when the glyph boxes overlap. In particular, after drawing a glyph, the next glyph's blanks will override what the previous glyph drew, and this is not the correct behavior. While on it, use CheckedNumeric to do operations safely. For reference of somewhere where something similar is done, see: https://cs.chromium.org/chromium/src/third_party/pdfium/core/fxge/ge/cfx_renderdevice.cpp?sq=package:chromium&rcl=1477581616&l=988 BUG=513954 Committed: https://pdfium.googlesource.com/pdfium/+/b849e816eee20c256cf1da94f4ba9e233b13ac23

Patch Set 1 #

Total comments: 2

Patch Set 2 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -7 lines) Patch
M core/fpdfapi/render/fpdf_render_text.cpp View 1 2 chunks +20 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
npm
PTAL. Accidentally deleted two blank spaces, will restore.
4 years, 1 month ago (2016-10-28 18:52:10 UTC) #4
Tom Sepez
lgtm
4 years, 1 month ago (2016-10-28 18:56:10 UTC) #5
Lei Zhang
Is it easy to make a PDF with some type 3 fonts to exercise this ...
4 years, 1 month ago (2016-10-28 18:56:31 UTC) #6
Lei Zhang
lgtm https://codereview.chromium.org/2461743002/diff/1/core/fpdfapi/render/fpdf_render_text.cpp File core/fpdfapi/render/fpdf_render_text.cpp (right): https://codereview.chromium.org/2461743002/diff/1/core/fpdfapi/render/fpdf_render_text.cpp#newcode315 core/fpdfapi/render/fpdf_render_text.cpp:315: pdfium::base::CheckedNumeric<int> left = glyph.m_OriginX; nit: include the header ...
4 years, 1 month ago (2016-10-28 18:58:20 UTC) #7
npm
https://codereview.chromium.org/2461743002/diff/1/core/fpdfapi/render/fpdf_render_text.cpp File core/fpdfapi/render/fpdf_render_text.cpp (right): https://codereview.chromium.org/2461743002/diff/1/core/fpdfapi/render/fpdf_render_text.cpp#newcode315 core/fpdfapi/render/fpdf_render_text.cpp:315: pdfium::base::CheckedNumeric<int> left = glyph.m_OriginX; On 2016/10/28 18:58:20, Lei Zhang ...
4 years, 1 month ago (2016-10-28 19:26:25 UTC) #10
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/2461743002/20001
4 years, 1 month ago (2016-10-28 19:26:39 UTC) #13
npm
On 2016/10/28 18:56:31, Lei Zhang wrote: > Is it easy to make a PDF with ...
4 years, 1 month ago (2016-10-28 19:30:14 UTC) #14
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 19:47:51 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/b849e816eee20c256cf1da94f4ba9e233b13...

Powered by Google App Engine
This is Rietveld 408576698