diff options
author | Nicolas Pena <npm@chromium.org> | 2017-05-03 10:23:49 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-03 14:36:16 +0000 |
commit | f45ade3a0af908a1d6a51c5cc675f81517c9a22a (patch) | |
tree | 91b01053cf00cb584e31b3f8f012074f3d989573 /build_overrides | |
parent | 69c743ff1034fc127fabfb9cc6fdb90dc7904e7d (diff) | |
download | pdfium-f45ade3a0af908a1d6a51c5cc675f81517c9a22a.tar.xz |
Add a ToUnicode mapping when loading CID fonts
This CL adds ToUnicode for CID fonts and adds a test to prove that using it
works as intended. The test uses a Linux font for Japanese characters, and
tests for other OS will be added in a followup.
The ToUnicode works by defining the PDF charcodes as equal to the glyph indices
and assuming that the freetype charcodes given by FXFT_Get_Next_Char are in
fact the unicode values.
Bug: pdfium:667
Change-Id: I419724b87c3936c730a05f771548ae4787a576eb
Reviewed-on: https://pdfium-review.googlesource.com/4810
Commit-Queue: Nicolás Peña <npm@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'build_overrides')
0 files changed, 0 insertions, 0 deletions