perfect I use the ttf font and all works fine thank you.
1T3XT info wrote:
>
> pedro75 wrote:
>> ok you suggest to add a font.
>>
>> I downloaded this free font "courmon.ttf" I stored it as a resource. So
>> now
>> I use it and all works
>> BaseFont bfComic = BaseFont.createFont("resourceDIR\
pedro75 wrote:
> ok you suggest to add a font.
>
> I downloaded this free font "courmon.ttf" I stored it as a resource. So now
> I use it and all works
> BaseFont bfComic = BaseFont.createFont("resourceDIR\\courmon.ttf",
> BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
>
> My question now is this: C
ok you suggest to add a font.
I downloaded this free font "courmon.ttf" I stored it as a resource. So now
I use it and all works
BaseFont bfComic = BaseFont.createFont("resourceDIR\\courmon.ttf",
BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
My question now is this: Can I use both ttf fonts and a
pedro75 wrote:
> But my question is how to produce this pdf file without know the platform.
> In linux of course font's directory is different, fonts are different etc.
Ship the font with your application (if the license of the font allows
it). You can load it as a resource from a jar.
br,
Bruno