summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorJun Fang <jun_fang@foxitsoftware.com>2015-12-08 08:19:11 +0800
committerJun Fang <jun_fang@foxitsoftware.com>2015-12-08 08:19:11 +0800
commit206310aa43ea87c4e8622f26ae708065bb2f2f77 (patch)
tree890ca7f988f274933c64a86e7f7a962ad2eeb7f2 /core/src
parent0ff66089c87ab6e3adaaff0ec69728ce7a8d8299 (diff)
downloadpdfium-206310aa43ea87c4e8622f26ae708065bb2f2f77.tar.xz
Fix rendering with built-in CID fonts
The root cause is that FXFONT_SUBST_EXACT is wrongly set even no any subset font was found. It causes m_bCIDIsGID to be wrongly set as TRUE in CPDF_CIDFont::_Load(). BUG=534945 R=thestig@chromium.org, tsepez@chromium.org Review URL: https://codereview.chromium.org/1502083002 .
Diffstat (limited to 'core/src')
-rw-r--r--core/src/fxge/ge/fx_ge_fontmap.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/src/fxge/ge/fx_ge_fontmap.cpp b/core/src/fxge/ge/fx_ge_fontmap.cpp
index 52605a003c..6781369455 100644
--- a/core/src/fxge/ge/fx_ge_fontmap.cpp
+++ b/core/src/fxge/ge/fx_ge_fontmap.cpp
@@ -1052,7 +1052,6 @@ FXFT_Face CFX_FontMapper::FindSubstFont(const CFX_ByteString& name,
: (nStyle & FX_FONT_STYLE_Bold ? FXFONT_FW_BOLD : FXFONT_FW_NORMAL);
}
if (!match.IsEmpty() || iBaseFont < 12) {
- pSubstFont->m_SubstFlags |= FXFONT_SUBST_EXACT;
if (!match.IsEmpty()) {
family = match;
}