summaryrefslogtreecommitdiff
path: root/core/fxge/cfx_fontmapper.h
diff options
context:
space:
mode:
authornpm <npm@chromium.org>2016-10-06 12:29:09 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-06 12:29:09 -0700
commit065c35006d96eaca324f49248d20d83709a25fbe (patch)
tree46d3d235bc8a8192748fa64166cb3d86aa65a0d8 /core/fxge/cfx_fontmapper.h
parentaa6e8b555e113a3f91a49258ed83810abf0d4929 (diff)
downloadpdfium-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.h1
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;