Different applications look for fonts in different places and have special
internal fonts.
----- Original Message -----
From: "ddccpp ..." <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, February 18, 2006 10:24 AM
Subject: [iText-questions] FontFactory.getRegisteredFamilies()
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=k&kid3432&bid#0486&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
-------------------------------------------------------
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&kid=103432&bid=230486&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions