The font times.ttf on my Windows system (Win XP SP2) does not contain this
character. Likely this is the source of your problem.

---mr. bean



Richard Thomas wrote:
> 
> Hi
> 
> I am trying to use iText to output a document containing the "LATIN
> SMALL LETTER OPEN O" character described here:
> http://www.fileformat.info/info/unicode/char/0254/index.htm
> 
> Every time I try and output this character, I get a blank where I
> would expect to see it. I have tried with different fonts, including
> those that I have confirmed contain the character I would like to
> print.
> 
> Here is the Java I am using on Ubuntu:
> 
>               Document document = new Document();
>               try {
>                       PdfWriter.getInstance(document, new
> FileOutputStream("/home/rich/test.pdf"));
>                       document.open();
>                       Phrase instance = Phrase.getInstance("Test: \u0254");
>               
> FontFactory.register("times","/usr/share/fonts/truetype/msttcorefonts/times.ttf");
>                       Font font = FontFactory.getFont("times");
>                       instance.setFont(font);
>                       document.add(instance);
>               } catch (DocumentException de) {
>                       System.err.println(de.getMessage());
>               } catch (IOException ioe) {
>                       System.err.println(ioe.getMessage());
>               }
>               document.close();
> 
> The test.pdf file gets created, but only contains "Test:". I have
> tried opening the same file on Vista, and get the same result.
> 
> Does anyone have any ideas what I might be doing incorrectly?
> 
> Thanks in advance for any help!
> 
> Rich
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Output-special-character---won%27t-appear-tp20058867p20061725.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to