summaryrefslogtreecommitdiff
path: root/core/fpdfapi/font/cpdf_cidfont.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-05-05 10:38:06 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-05-05 21:04:20 +0000
commit32f2087020642661e12b05c1cfba02ca32c04ee4 (patch)
tree2b3aafe54e97396739ffe36b7425d9ce757a635e /core/fpdfapi/font/cpdf_cidfont.cpp
parent9bdbc16e3c8f30e32a1f399543d04ac5b1e9c97c (diff)
downloadpdfium-32f2087020642661e12b05c1cfba02ca32c04ee4.tar.xz
Make CPDF_CMap::m_pMapping use std::vector
Use much longer descriptive identifiers while at it. Pack a little tighter while at it, too. Change-Id: I123025f6433a627b5e00ee225efa7dc843b07913 Reviewed-on: https://pdfium-review.googlesource.com/5011 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/font/cpdf_cidfont.cpp')
-rw-r--r--core/fpdfapi/font/cpdf_cidfont.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/fpdfapi/font/cpdf_cidfont.cpp b/core/fpdfapi/font/cpdf_cidfont.cpp
index c309ac1d26..c41f8046f7 100644
--- a/core/fpdfapi/font/cpdf_cidfont.cpp
+++ b/core/fpdfapi/font/cpdf_cidfont.cpp
@@ -721,8 +721,7 @@ int CPDF_CIDFont::GlyphFromCharCode(uint32_t charcode, bool* pVertGlyph) {
if (!m_pStreamAcc) {
if (m_bType1)
return cid;
-
- if (m_pFontFile && !m_pCMap->m_pMapping)
+ if (m_pFontFile && m_pCMap->m_DirectCharcodeToCIDTable.empty())
return cid;
if (m_pCMap->m_Coding == CIDCODING_UNKNOWN ||
!FXFT_Get_Face_Charmap(m_Font.GetFace())) {