diff options
author | Albert Astals Cid <aacid@kde.org> | 2021-10-22 22:53:37 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2021-10-22 22:54:53 +0200 |
commit | a973ccdf0ea93022401c6c5cedcdfcaa5cd26866 (patch) | |
tree | c6f7307d7f5786d4b413fcdfc9b4c1992e42b320 /poppler/PSOutputDev.cc | |
parent | dd373dcee45653390042107ed45a616b6234ea77 (diff) |
Remove remmnats of external ps cid bit-16 fonts
Diffstat (limited to 'poppler/PSOutputDev.cc')
-rw-r--r-- | poppler/PSOutputDev.cc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc index fe5da746..a13ab851 100644 --- a/poppler/PSOutputDev.cc +++ b/poppler/PSOutputDev.cc @@ -1908,7 +1908,6 @@ void PSOutputDev::setupFont(GfxFont *font, Dict *parentResDict) GooString *psName; char buf[16]; bool subst; - const UnicodeMap *uMap; const char *charName; double xs, ys; int code; @@ -2050,23 +2049,6 @@ void PSOutputDev::setupFont(GfxFont *font, Dict *parentResDict) } } - // handle encodings for substituted CID fonts - if (fontLoc->locType == gfxFontLocResident && fontLoc->fontType >= fontCIDType0) { - subst = true; - if (font16EncLen >= font16EncSize) { - font16EncSize += 16; - font16Enc = (PSFont16Enc *)greallocn(font16Enc, font16EncSize, sizeof(PSFont16Enc)); - } - font16Enc[font16EncLen].fontID = *font->getID(); - if ((uMap = globalParams->getUnicodeMap(fontLoc->encoding->toStr()))) { - font16Enc[font16EncLen].enc = fontLoc->encoding->copy(); - } else { - error(errSyntaxError, -1, "Couldn't find Unicode map for 16-bit font encoding '{0:t}'", fontLoc->encoding); - font16Enc[font16EncLen].enc = nullptr; - } - ++font16EncLen; - } - delete fontLoc; } |