mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Fix bug 59153
This commit is contained in:
@ -3901,7 +3901,7 @@ namespace PdfReader
|
||||
}
|
||||
else
|
||||
{
|
||||
if ((isCIDFont && (((GfxCIDFont*)pFont)->usesIdentityEncoding() || ((GfxCIDFont*)pFont)->usesIdentityCIDToGID()))
|
||||
if ((isCIDFont && (((GfxCIDFont*)pFont)->usesIdentityEncoding() || ((GfxCIDFont*)pFont)->usesIdentityCIDToGID() || ((GfxCIDFont*)pFont)->ctuUsesCharCodeToUnicode()))
|
||||
|| (!isCIDFont && wsUnicodeText.empty()))
|
||||
{
|
||||
int nCurCode = (0 == nCode ? 65534 : nCode);
|
||||
|
||||
@ -353,6 +353,7 @@ public:
|
||||
// appears to treat char codes as raw GIDs.
|
||||
GBool usesIdentityEncoding() { return identityEnc; }
|
||||
GBool usesIdentityCIDToGID() { return hasIdentityCIDToGID; }
|
||||
GBool ctuUsesCharCodeToUnicode() { return ctuUsesCharCode; }
|
||||
|
||||
virtual GBool problematicForUnicode();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user