DescriptionUse ToUnicode mapping even when unicode is 0.
CPDF_Font::UnicodeFromCharcode returns 0 only if ToUnicode map maps the
charcode to 0. CPDF_SimpleFont::UnicodeFromCharcode and CPDF_CID_Font::
UnicodeFromCharCode return 0 only if the call to CPDF_Font returns 0.
In other cases, these methods return an empty string. So when
processing text, a 0 return from the method should not be replaced
with the charcode.
BUG=pdfium:583
Committed: https://pdfium.googlesource.com/pdfium/+/84be3a3cfec5107aac9a58ea00b58b733d393c7d
Patch Set 1 #Patch Set 2 : Add test #
Messages
Total messages: 18 (12 generated)
|