xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Bowditch <bowditch_ch...@hotmail.com>
Subject Re: FOP Default Fonts
Date Mon, 16 Mar 2009 10:58:19 GMT
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 Bold
Times Italic
Times Bold Italic
Helvetica Bold
Helvetica Italic
Helvetica Bold Italic
Courier Bold
Courier Italic
Courier Bold Italic


To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

View raw message