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:
Michael Pfeiffer
2007-10-29 07:50:12 +00:00
parent 09f147fb33
commit 79d7211056
@@ -279,7 +279,7 @@ PDFWriter::FindFont(char* fontName, bool embed, font_encoding encoding)
cache = new Font(fontName, font, encoding);
fFontCache.AddItem(cache);
} 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;
}
@@ -623,7 +623,7 @@ PDFWriter::EmbedFont(const char* name)
FontFile* f = fFonts->At(i);
if (strcmp(f->Name(), name) == 0) {
cache = f;
return f->Embed(); // Size() < fEmbedMaxFontSize;
return f->Embed();
}
}
return false;