Please disregard my previous message.

Takenori

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of 佐藤剛
> [EMAIL PROTECTED](B TakenoriSato
> Sent: Thursday, October 09, 2003 11:04 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [iText-questions] Graphics2D AND Encoding
>
>
> Hi,
>
> Without any change the original source code,
> I got the wanted result with "putAlias".
> Does this cause any problem?
>
>         for(int i=0; i<availableFonts.length; i++){
>             DefaultFontMapper.BaseFontParameters pp =
> mapper.getBaseFontParameters(availableFonts[i].getFontName());
>             System.out.println((pp == null)?"null":pp.fontName);
>             if (pp != null){
>                 pp.encoding = BaseFont.IDENTITY_H;
>                 pp.embedded = true;
>             }else{
>                 mapper.putAlias(defaultFont,
> availableFonts[i].getFontName());
>             }
>         }
>
> Regards,
>
> Takenori
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Paulo
> > Soares
> > Sent: Wednesday, October 08, 2003 8:44 PM
> > To: '???? TakenoriSato'; [EMAIL PROTECTED]
> > Subject: RE: [iText-questions] Graphics2D AND Encoding
> >
> >
> > Logical fonts are heuristically mapped, see the source of
> > DefaultFontMapper.
> > You can change this mapping and have, for example, "serif" also
> mapped to
> > "MS Mincho".
> >
> > Best Regards,
> > Paulo Soares
> >
> > > -----Original Message-----
> > > From:     [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]
> > > Sent:     Wednesday, October 08, 2003 3:27
> > > To:       [EMAIL PROTECTED]
> > > Subject:  RE: [iText-questions] Graphics2D AND Encoding
> > >
> > > 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
> >
> >
> > -------------------------------------------------------
> > 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: SF.net Giveback Program.
> SourceForge.net hosts over 70,000 Open Source Projects.
> See the people who have HELPED US provide better services:
> Click here: http://sourceforge.net/supporters.php
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to