Hi Paulo, 

But this IS a true type font, isnt it. It has a TTF extension.. 

Thanks, Rema









Paulo Soares wrote:
> 
> iText only supports Truetype Unicode fonts. Your font is a double byte
> encoded font.
> 
> Paulo 
> 
>> -----Original Message-----
>> From: [EMAIL PROTECTED] 
>> [mailto:[EMAIL PROTECTED] On 
>> Behalf Of remgeo
>> Sent: Friday, June 29, 2007 2:02 PM
>> To: itext-questions@lists.sourceforge.net
>> Subject: Re: [iText-questions] Custom Chinese font file
>> 
>> 
>> Hi Paulo, 
>> 
>> I've attached the font file I am using. 
>> http://www.nabble.com/file/p11359847/HDZB_27.TTF HDZB_27.TTF 
>> 
>> Here's the code 
>> BaseFont bfComic = 
>> BaseFont.createFont("c:\\windows\\fonts\\HDZB_27.TTF",
>> BaseFont.IDENTITY_V, BaseFont.NOT_EMBEDDED);
>> 
>> This text that I am trying to output is 漢鼎繁琥珀, which is valid 
>> for this font.
>> The unicode representation for the string is 
>> ¥u6F22¥u9F0E¥u7E41¥u7425¥u73C0.
>> That is what I am trying to output. 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Paulo Soares wrote:
>> > 
>> > Are you sure you have any glyphs at those Unicode values?
>> > You may post a link to the font for inspection.
>> > 
>> > Paulo 
>> > 
>> >> -----Original Message-----
>> >> From: [EMAIL PROTECTED] 
>> >> [mailto:[EMAIL PROTECTED] On 
>> >> Behalf Of remgeo
>> >> Sent: Friday, June 29, 2007 11:49 AM
>> >> To: itext-questions@lists.sourceforge.net
>> >> Subject: [iText-questions] Custom Chinese font file
>> >> 
>> >> 
>> >> Hello, 
>> >> 
>> >> I am trying to use a custom font file to display Chinese 
>> characters. 
>> >> This is how I am creating the font. 
>> >> 
>> >> BaseFont bfComic = 
>> >> BaseFont.createFont("c:¥¥windows¥¥fonts¥¥HDZB_86.TTF",
>> >> BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
>> >> String text1 = "¥u6F22¥u9F0E¥u7E41¥u7425¥u73C0";
>> >> 
>> >> But in the PDF, no characters are visible. 
>> >> 
>> >> If I use the fonts as specified in iTextAsian.jar, but that 
>> >> is not good
>> >> enough for me. I have to work with custom font files. 
>> >> 
>> >> Can someone please advise where I am going wrong? 
>> >> 
>> >> Thanks, Rema
> 
> 
> Aviso Legal:
> Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
> informação confidencial ou legalmente protegida. A incorrecta transmissão
> desta mensagem não significa a perca de confidencialidade. Se esta
> mensagem for recebida por engano, por favor envie-a de volta para o
> remetente e apague-a do seu sistema de imediato. É proibido a qualquer
> pessoa que não o destinatário de usar, revelar ou distribuir qualquer
> parte desta mensagem. 
> 
> Disclaimer:
> This message is destined exclusively to the intended receiver. It may
> contain confidential or legally protected information. The incorrect
> transmission of this message does not mean the loss of its
> confidentiality. If this message is received by mistake, please send it
> back to the sender and delete it from your system immediately. It is
> forbidden to any person who is not the intended receiver to use,
> distribute or copy any part of this message.
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Custom-Chinese-font-file-tf3999305.html#a11361214
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to