What do you mean incorrectly? The character doesn't show or it's an hinting
problem? Did you contacted the producer of the viewer?
Best Regards,
Paulo Soares
> -----Original Message-----
> From: Bruno Lowagie [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, May 22, 2002 7:23
> To: [EMAIL PROTECTED]
> Subject: Fwd: Re: [iText-questions] a question
>
>
>
> ----- Forwarded message from [EMAIL PROTECTED] -----
> Date: Wed, 22 May 2002 10:48:23 +0800
> From: [EMAIL PROTECTED]
> Reply-To: [EMAIL PROTECTED]
> Subject: Re: [iText-questions] a question
> To: Bruno Lowagie <[EMAIL PROTECTED]>
>
> simsun.ttc is chinese font,it work well at win2000, but it display
> incorrectly
> at linux, why?
>
> import java.io.FileOutputStream;
> import java.io.IOException;
> import java.awt.Color;
> import com.lowagie.text.*;
> import com.lowagie.text.pdf.*;
> public class Chap0403 {
> public static void main(String[] args) {
> Document document = new Document(PageSize.A4, 50, 50, 50, 50);
> try {
> PdfWriter writer=PdfWriter.getInstance(document, new
> FileOutputStream("Chap0403.pdf"));
> document.open();
> BaseFont bfComic = BaseFont.createFont("simsun.ttc,1",
> BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
> Font font = new Font(bfComic, 12);
> Font font1 = new Font(bfComic, 16, Font.BOLD, new Color(255,
> 0,
> 0));
>
> Paragraph title1 = new Paragraph("第�EUR� aa",font1);
> Chapter chapter1 = new Chapter(title1, 1);
> Paragraph someText = new Paragraph("第�EUR�S'bb",font1 );
> chapter1.add(someText);
> Paragraph title11 = new Paragraph("第�EUR�S'cc",font1 );
> Section section1 = chapter1.addSection(title11);
> Paragraph someSectionText = new
> Paragraph("第�EUR�S'dd",font1 );
> section1.add(someSectionText);
> document.add(chapter1);
> }
> catch(Exception de) {
> de.printStackTrace();
> }
> // step 5: we close the document
> document.close();
> }
> }
>
> ----- Original Message -----
> From: "Bruno Lowagie" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 21, 2002 6:44 PM
> Subject: Re: [iText-questions] a question
>
>
> > Quoting [EMAIL PROTECTED]:
> >
> > > hello
> > > Does itext support chinese at unix or linux?
> > > send me example.
> > > thanks!
> >
> > All examples in Chapter 9 of the tutorial
> > work on Windows as well on UNIX or LINUX.
> > Just make sure to change the paths to the
> > TTF- or TTC-files where necessary.
> >
> > Bruno
> >
> >
>
> ----- End forwarded message -----
>
>
>
>
> _______________________________________________________________
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions