diff options
author | npm <npm@chromium.org> | 2016-10-06 12:29:09 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-06 12:29:09 -0700 |
commit | 065c35006d96eaca324f49248d20d83709a25fbe (patch) | |
tree | 46d3d235bc8a8192748fa64166cb3d86aa65a0d8 /core/fxge/cfx_fontmapper.h | |
parent | aa6e8b555e113a3f91a49258ed83810abf0d4929 (diff) | |
download | pdfium-065c35006d96eaca324f49248d20d83709a25fbe.tar.xz |
Split m_InstalledTTFonts into two vectors to avoid sketchy logic.
Instead of relying on ' ' to determine whether the CFX_Bytestring
is added on one place or another, use another vector. When trying
to match fonts from the fontmapper, compare with both vectors.
BUG=pdfium:510
Review-Url: https://codereview.chromium.org/2395883002
Diffstat (limited to 'core/fxge/cfx_fontmapper.h')
-rw-r--r-- | core/fxge/cfx_fontmapper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/fxge/cfx_fontmapper.h b/core/fxge/cfx_fontmapper.h index 383550b33a..e59966a530 100644 --- a/core/fxge/cfx_fontmapper.h +++ b/core/fxge/cfx_fontmapper.h @@ -45,6 +45,7 @@ class CFX_FontMapper { } std::vector<CFX_ByteString> m_InstalledTTFonts; + std::vector<std::pair<CFX_ByteString, CFX_ByteString>> m_LocalizedTTFonts; private: static const size_t MM_FACE_COUNT = 2; |