On 7/10/2010 10:19, kazam wrote:
> the ttf files don't take effect is when I am setting the font on a
> ColumnText element.

Why are you working in text mode?
Wouldn't you rather work in composite mode?

> public static void addColumnString(String text, ColumnText
> ct) throws DocumentException, IOException
> {
>BaseFont bf;
>   bf = BaseFont.createFont("c:/windows/fonts/RAVIE.ttf", BaseFont.WINANSI,
>     BaseFont.EMBEDDED);
>   Font ft = new Font(bf,12);
>   Paragraph p = new Paragraph(text, ft);
      ct.addElement(p);
> }


-- 
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