I've added a font mapper to PdfGraphics2D that works very well, I've even
succeeded to had a chart with a japanese title, really easy. The problem is
that this is in windows and I have no idea how unix works with fonts. In
windows I have the java jdk file font.properties that has entries like:
dialog.0=Arial,ANSI_CHARSET
dialog.1=WingDings,SYMBOL_CHARSET,NEED_CONVERTED
dialog.2=Symbol,SYMBOL_CHARSET,NEED_CONVERTED
to map the standard fonts to the system fonts. Is it the same in linux, OS
X, etc?
In addition to this all the system fonts are available to be used. All I
have to do is to read the c:\winnt\fonts to have an almost automatic
correspondence awt->BaseFont. Can a similar strategy be used in unix? What
fonts are available in the system?
I have a small program below that reads all the fonts that java sees. Can
someone with unix run the program and send me privately the result
preferably with a note if the fonts shown are available as ttf or afm (or
pfb) in the system (no need to do it font by font, just a general idea)?
import java.awt.Font;
import java.awt.GraphicsEnvironment;
public class java_fonts {
public static void main(String[] args) {
try {
GraphicsEnvironment ge =
GraphicsEnvironment.getLocalGraphicsEnvironment();
Font fonts[] = ge.getAllFonts();
for (int k = 0; k < fonts.length; ++k)
System.out.println(fonts[k].getFontName() + " * " +
fonts[k].toString());
}
catch (Exception de) {
de.printStackTrace();
}
}
}
Best Regards,
Paulo Soares
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions