diff options
author | rbpotter <rbpotter@chromium.org> | 2017-07-11 10:04:29 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-11 17:22:12 +0000 |
commit | e8468c43cb3b14f4440456d19cb047150509949d (patch) | |
tree | c11fc22bfe770abf5321fceb32644dca5c34faa1 /core/fpdfapi/render | |
parent | 00c3cfdbae074a379cab4edad0e4fa75d6127797 (diff) | |
download | pdfium-e8468c43cb3b14f4440456d19cb047150509949d.tar.xz |
Add Windows generic / text only printer driver support.
BUG=chromium:734850
Change-Id: Icc0947e2e99e77a36d8963fcf0b6d3deea161d3e
Reviewed-on: https://pdfium-review.googlesource.com/7194
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/render')
-rw-r--r-- | core/fpdfapi/render/cpdf_charposlist.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fpdfapi/render/cpdf_charposlist.cpp b/core/fpdfapi/render/cpdf_charposlist.cpp index 68df46bdad..a87fc3334e 100644 --- a/core/fpdfapi/render/cpdf_charposlist.cpp +++ b/core/fpdfapi/render/cpdf_charposlist.cpp @@ -37,7 +37,8 @@ void CPDF_CharPosList::Load(const std::vector<uint32_t>& charCodes, FXTEXT_CHARPOS& charpos = m_pCharPos[m_nChars++]; if (pCIDFont) charpos.m_bFontStyle = true; - + CFX_WideString unicode = pFont->UnicodeFromCharCode(CharCode); + charpos.m_Unicode = !unicode.IsEmpty() ? unicode.GetAt(0) : CharCode; charpos.m_GlyphIndex = pFont->GlyphFromCharCode(CharCode, &bVert); uint32_t GlyphID = charpos.m_GlyphIndex; #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ |