> -----Original Message-----
> From: David Gilbert [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 17:01
> To: [EMAIL PROTECTED]
> Subject: Re: [iText-questions] Charts to PDF...
>
> I took a look at your example---thanks---and now I have some code that
> displays Unicode characters using the Arial Unicode MS font (I don't have
> the
> font you used in your code). I create the DefaultFontMapper object (based
> on
> your code, modified for my font directory on Linux):
>
> DefaultFontMapper mapper = new DefaultFontMapper();
> mapper.insertDirectory("/opt/jbuilder5/jdk1.3/jre/lib/fonts");
> DefaultFontMapper.BaseFontParameters pp =
> mapper.getBaseFontParameters("Arial
> Unicode MS");
> if (pp!=null) {
> pp.encoding = BaseFont.IDENTITY_H;
> }
>
> After looking at the code in DefaultFontMapper I can see that the code
> above
> is changing the encoding from CP1252 to IDENTITY_H. Can you explain what
> that means, I'm a little out of my depth with fonts. I've heard of
> Cp1252,
> but what is IDENTITY_H.
>
For true-type fonts iText can use two approaches. One is to use an
encoding that will convert the Unicode character into a byte that will be
placed in the PDF content stream and is limited to 256 characters. The other
is to have the encoding IDENTITY_H that is actually a "no encoding"
encoding. This way each character will occupy 2 bytes in the content stream
but all the font characters are directly accessible.
> Regards,
>
> DG.
>
> P.S. While reviewing older posts, I found your request for the output of
> a
> small Java program that lists the available fonts on Linux. Do you still
> need that output?
>
No, thank you. I have enough information for Linux, Solaris and MAC
OSX. All the systems can use true-type fonts in the awt so a perfect match
is always possible.
Best Regards,
Paulo Soares
> On Thursday 09 May 2002 5:30 pm, Paulo Soares wrote:
> > Now that we are at it, the way you do the charts is the right way but
> won't
> > support other charsets. You'll have to use DefaultFontMapper to map pdf
> > fonts to awt fonts. I have an example at
> http://www.geocities.com/itextpdf
> > to map a japanese font that may be useful. The example is
> free_chart.java.
> >
> > Best Regards,
> > Paulo Soares
>
>
> _______________________________________________________________
>
> Have big pipes? SourceForge.net is looking for download mirrors. We supply
> the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions