DescriptionUse 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 #Messages
Total messages: 16 (8 generated)
|