Hey everyone

I'm currently using FOP for a printing engine (0.20.5 or latest from maintaince branch) which works great.

But regarding fonts I have a problem, which I wouldn't expect to be the first FOP user to have, so I'll ask here in hope of some good answers.

Currently the printing engine generates either a preview, prints directlty to printer or generates a PDF. The printing is based on a swing table
and all attributes from the table is converted to XSL-FO incl. the used font.
I would like to configure fonts on the fly as part of the printing process:
1) First acquire the filename(s) and location of the font involved
2) Generate the XML metrics file (for PDF cases)
3) Configure FOP (using the Options() approach)

step 2. + 3. are quite simple AFAICS, but step 1. is more tricky - is there any way to obtain this information from AWT or somewhere else ????

If anyone see another possible solution or any problems besides 1. in my suggested aprroach, comments are appreciated :)

Best regards


Mikael

Reply via email to