Hello!

I'am trying to let the user select the font and style from a menu to 
generate a pdf file.
I found a great fontchooser by the SUN. Then I read the tutorial by 
iText: 
http://itextdocs.lowagie.com/tutorial/fonts/getting/index.html#files

The SUN's fontchooser uses a code like this:
        GraphicsEnvironment gEnv = 
GraphicsEnvironment.getLocalGraphicsEnvironment();
        String envfonts[] = gEnv.getAvailableFontFamilyNames();  

The iText example uses this:
        FontFactory.registerDirectories();
        TreeSet families = new TreeSet
(FontFactory.getRegisteredFamilies());

The two list is almost the same, but there is some fonts only in SUN's 
list and there is
fonts only in iText's list.

Do You recognized this problem? What is the matter? Probably I have 
some special font's or something?

Thank You for Your answer.



There is the two file's:

http://java.sun.com/docs/books/tutorial/2d/textandfonts/example-
1dot2/FontSelection.java

http://itextdocs.lowagie.com/examples/com/lowagie/examples/fonts/get
ting/UsingFontFactory.java



___________________________________________________________________________
[origo] klikkbank lakossági számlacsomag havi 199 Ft-ért, bankkártya éves díj 
nélkül!
www.klikkbank.hu




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to