Index: core/src/fpdftext/fpdf_text.cpp |
diff --git a/core/src/fpdftext/fpdf_text.cpp b/core/src/fpdftext/fpdf_text.cpp |
index defad925b96b3fb8916c8ffb646de648566e589d..f633e1951703be4aad9282f2cf8dbf86f0df6e9e 100644 |
--- a/core/src/fpdftext/fpdf_text.cpp |
+++ b/core/src/fpdftext/fpdf_text.cpp |
@@ -184,7 +184,12 @@ CTextBaseLine* CTextPage::InsertTextBox(CTextBaseLine* pBaseLine, FX_FLOAT basey |
while (offset < len) { |
FX_DWORD ch = pFont->GetNextChar(pStr, offset); |
CFX_WideString unicode_str = pFont->UnicodeFromCharCode(ch); |
- text += unicode_str; |
+ if (unicode_str.IsEmpty()) { |
+ text += (FX_WCHAR)ch; |
jbreiden
2014/08/18 19:10:49
The example PDF file for this bug contains a
mappi
|
+ } |
+ else { |
+ text += unicode_str; |
+ } |
} |
pBaseLine->InsertTextBox(leftx, rightx, topy, bottomy, spacew, fontsize_v, text); |
return pBaseLine; |