mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #50: Fix of fonts, be more patient when PDF has error items
This commit is contained in:
@ -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)));
|
||||
|
Reference in New Issue
Block a user