On 6/10/2010 20:46, kazam wrote:
>
> The file is there, if the file is not found it throws an exception. I have
> tried to even point to some of Adobe's fonts but it still doesn't work.
>
>   BaseFont bf =
> BaseFont.createFont("C:\\PROGRA~1\\Adobe\\ACROBA~1.0\\Resource\\Font\\AdobeHebrew-Regular.otf",BaseFont.CP1252,
> BaseFont.EMBEDDED);

Do you have a license to use that font?
It's forbidden to use fonts that ship with Acrobat
in any other context than with Acrobat.

>           Font ft = new Font(bf,5);
>           Paragraph p = new Paragraph("some text", ft);
>          p.setFont(ft);
>          Phrase ss = Phrase.getInstance(p.getContent());
>          ss.setFont(ft);
>          ct.addText(ss);


It must be frustrating for you that you can't get it to work, but then 
again: you are also frustrating us by saying "it still doesn't work" 
without a shred of proof.

Right now, I have as much right to say that you look like a green 
elephant as you have right to say "it doesn't work".

You probably won't believe me because you can look in the mirror and 
verify that you're not green and that you don't have a long snout.

Well, for the same reason I don't believe that TTFs don't work with 
iText, because I have thousands of examples that proof the opposite (if 
only you'd do the effort to download and test some of those examples).

Nobody can help you if you don't want to be helped.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to