Issue #50: Fix of fonts, be more patient when PDF has error items

This commit is contained in:
Jakub Melka
2023-04-30 17:52:01 +02:00
parent 0b47464241
commit 349efcbf88
3 changed files with 23 additions and 94 deletions

View File

@ -983,6 +983,11 @@ PDFRealizedFontPointer PDFRealizedFont::createRealizedFont(PDFFontPointer font,
{
PDFRealizedFontPointer result;
if (pixelSize < 0.0)
{
pixelSize = qAbs(pixelSize);
}
if (font->getFontType() == FontType::Type3)
{
result.reset(new PDFRealizedFont(new PDFRealizedType3FontImpl(font, pixelSize)));