I have to internationalize the application and therefore must allow the user to select the font for the PDF that I will create at runtime. I want to be able to display a list of font options from a user system using
GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts();
This is great for getting fonts, but then it seems like I need to jump over some hoops to get this font to play well with FOP, as described here . I can follow all the instructions that they set out, except that I'm not sure how to get the font layout for TTFReader to start.
- Does anyone know how to specify the path of each font that java is compiling with the getAllFonts () command?
- Can I embed fonts in PDF files? For example, the Arial Unicode MS TFF file is ~ 30 MB.
- Is this the only way to create internationalized pdf files with FOP and XSL?
java xslt pdf fop
Jon
source share