Bernmeister wrote:
Hi,
From the FOP documentation, I know there are the Base-14 Fonts which are
available for PDF output. Is there a way in Java to get this list of fonts
(font-family, font-weight & font-style)? I've scoured through the FOP
Javadoc but can't seem to locate any method such as 'String[]
getAvailableFontNames()'.
I want to have a print options dialog in my application and would like it to
dynamically show available fonts from FOP rather than hard-coding a list.
I don't think there is a method on FOP or Java that you can call to get
a list of the Base 14 Fonts. Base 14 Fonts are an Adobe concept not a
Java or FOP specific thing.
My advice is to hard code the list, as they don't change:
Times
Times Bold
Times Italic
Times Bold Italic
Helvetica
Helvetica Bold
Helvetica Italic
Helvetica Bold Italic
Courier
Courier Bold
Courier Italic
Courier Bold Italic
Symbol
ZapfDingbats
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]