Use DefaultFontMapper to give that information. For example:
DefaultFontMapper mapper = new DefaultFontMapper();
//read all the fonts in the directory
mapper.insertDirectory("c:\\winnt\\fonts");
//change the encoding of font "Arial"
DefaultFontMapper.BaseFontParameters pp =
mapper.getBaseFontParameters("Arial");
if (pp != null)
pp.encoding = BaseFont.IDENTITY_H;
Best Regards,
Paulo Soares
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Zlatko Shushlevski
> Sent: Thursday, June 17, 2004 9:38 PM
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] Graphics2D and Cyrillic support
>
> Hi,
>
> I'm creating a new Java-to-PDF framework and i'm using
> IText only for porting to PDF file.
>
> The main object I use from IText is the Graphics2D
> object obtained by:
> createGraphics(pageWidth, pageHeight, fontMapper);
>
> I would like, also, to mention that the text in my
> framework is drawn by the Graphics2D.drawString(...)
> method. But, I have problems when i try to draw
> cyrillic text. Is there any property in Document or
> PdfWriter object i can set in order to use cyrillic
> encoding?
>
> If i use BaseFont, then i loose the advantage of using
> Graphics2D object.
>
> Any help would be greatly appreciated. Thanks in
> advance.
>
> Zlatko
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
> Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
> Conference, June 28 - July 1 at the Moscone Center in San
> Francisco, CA
> REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority
> Code NWMGYKND
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions