Ok so I just create two FontInfo objects for bold and normal. But how to do I make them available to fop?
Cheers, Pete > -----Ursprüngliche Nachricht----- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > systems.com] > Gesendet: Mittwoch, 30. August 2006 16:14 > An: [email protected] > Betreff: AW: Setting configuration of fonts in java code? > > >Is there a way to avoid this by doing it the execution code with an os > >test? > > Peter, look at the FontInfo class in the package > org.apache.fop.configuration: there you get the fontMetrics file by using > a java.net.URL object. So you could use different choices, if you check > the OS with the System property os.name. Try System.getProperty(String > key). > > There is also a file.separator property you could use. > Hope that helps :) > > Regards > Jens > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
