Kevin Klein wrote:
I have some TTF files stored as BLOBs in my Oracle database.
In my application, I've read the TTF data out of Oracle and now I want
to use the font in iText. My code looks like this:
bf = BaseFont.createFont(
font.fontName,
BaseFont.WINANSI,
true,
true,
font.fontData,
null
);
However, it always fails with the following exception:
com.lowagie.text.DocumentException: Font 'Unvers LT 47 CondensedLt'
with 'Cp1252' is not recognized.
It may seem an odd hack, but what if you replace
font.fontName by something like "unversLTcond.ttf"?
Does it work?
br,
Bruno
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions