Write more detailed error message in case font cannot be embedded (closes #1584).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22756 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -279,7 +279,7 @@ PDFWriter::FindFont(char* fontName, bool embed, font_encoding encoding)
|
|||||||
cache = new Font(fontName, font, encoding);
|
cache = new Font(fontName, font, encoding);
|
||||||
fFontCache.AddItem(cache);
|
fFontCache.AddItem(cache);
|
||||||
} else {
|
} else {
|
||||||
REPORT(kError, fPage, "Could not create font '%s'", fontName);
|
REPORT(kError, fPage, "Could not create font '%s': %s", fontName, PDF_get_errmsg(fPdf));
|
||||||
}
|
}
|
||||||
return font;
|
return font;
|
||||||
}
|
}
|
||||||
@@ -623,7 +623,7 @@ PDFWriter::EmbedFont(const char* name)
|
|||||||
FontFile* f = fFonts->At(i);
|
FontFile* f = fFonts->At(i);
|
||||||
if (strcmp(f->Name(), name) == 0) {
|
if (strcmp(f->Name(), name) == 0) {
|
||||||
cache = f;
|
cache = f;
|
||||||
return f->Embed(); // Size() < fEmbedMaxFontSize;
|
return f->Embed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user