Thanks a lot!
But logical fonts is not mapped as Identitiy-H.
How to set the encoding of logical fonts?
Regards,
Takenori
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Paulo
> Soares
> Sent: Tuesday, October 07, 2003 8:12 PM
> To: '???? TakenoriSato'; [EMAIL PROTECTED]
> Subject: RE: [iText-questions] Graphics2D AND Encoding
>
>
> The font must be registered and the encoding changed. For example:
>
> DefaultFontMapper mapper = new DefaultFontMapper();
> //read all the fonts in the directory
> mapper.insertDirectory("c:\\winnt\\fonts");
> //change the encoding of font "MS PGothic"
> DefaultFontMapper.BaseFontParameters pp = mapper.getBaseFontParameters("MS
> PGothic");
> if (pp != null)
> pp.encoding = BaseFont.IDENTITY_H;
>
> Best Regards,
> Paulo Soares
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]
> > Sent: Tuesday, October 07, 2003 8:07
> > To: [EMAIL PROTECTED]
> > Subject: [iText-questions] Graphics2D AND Encoding
> >
> > Hi,
> >
> > I have a problem about an encoding
> > using a Graphics2D object.
> >
> > The Graphics2D object,
> > which is created from PdfTemplate or PdfContentByte,
> > is drawn by my own swing application.
> > That application draw strings of various Japanese fonts.
> > But only ascii characters are drawn on the resulting pdf .
> >
> > Is this an encoding problem?
> > If so, how to change font encoding
> > from CP1252 to Identity-H?
> >
> > And fonts needed are to be registered
> > before Graphics2D is rendered?
> >
> > Thanks,
> >
> > Takenori
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > iText-questions mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions