Re: Fonts & AWT

2007-01-22 Thread Jeremias Maerki
Through java.awt.Font.createFont(int fontFormat, InputStream fontStream), you can load custom TrueType fonts (and, since JDK 1.5, Type 1 fonts). I'm sure this could somehow be integrated into FOP. You'd probably have to cache the initial Font instances in render.java2d.FontSetup. Furthermore, you'd

Re: Fonts & AWT

2007-01-21 Thread Daniel Noll
Adrian Cumiskey wrote: Hi David, The current implementation of just makes use of java fonts that have been made available from the O/S via a call to GraphicsEnvironment.getLocalGraphicsEnvironment(), it does not call upon and make use of the fonts defined in the fop configuration (as the PDF

Re: Fonts & AWT

2007-01-19 Thread Adrian Cumiskey
Hi David, The current implementation of just makes use of java fonts that have been made available from the O/S via a call to GraphicsEnvironment.getLocalGraphicsEnvironment(), it does not call upon and make use of the fonts defined in the fop configuration (as the PDF renderer does). Getti

Re: Fonts & AWT

2007-01-18 Thread David Morales
Hi Adrian, And there isn't a programmatic way to achieve this??? I'va tried to set "sun.java2d.fontpath" system property... and also copying mt fonts to $jdk/jre/lib/fonts... What about org.apache.fop.render.java2d.FontSetup class can i extend this funcionality or anyother to add fon

Re: Fonts & AWT

2007-01-18 Thread Adrian Cumiskey
Hi David, This looks to be reasonably helpful on the subject :- http://java.sun.com/j2se/1.3/docs/guide/intl/addingfonts.html. Basically you just need to install the missing fonts on your operating system. If this doesn't work you might have to try tweaking your fonts.properties file that si

Re: Fonts & AWT

2007-01-18 Thread David Morales
Sorry... i had problems in other apache mailing lists... And then... can't i set my own fonts when using awt?? i mean, awt-fop stablishes fonts?, or awt-java? Thanks again. Chris Bowditch escribió: David Morales wrote: Hi... Can anybody tell me how can i change fonts in fop-awt preview?

Re: Fonts & AWT

2007-01-18 Thread Chris Bowditch
David Morales wrote: Hi... Can anybody tell me how can i change fonts in fop-awt preview?? i mean, if i create a pdf with fop i can configure fonts, but when i do the same operation in awt fonts aren't the same... Why do you keep posting the same question. I already answered you here: htt

Fonts & AWT

2007-01-18 Thread David Morales
Hi... Can anybody tell me how can i change fonts in fop-awt preview?? i mean, if i create a pdf with fop i can configure fonts, but when i do the same operation in awt fonts aren't the same... Does Fonts used in fop-awt are system/jdk fonts?? are they fop user-config's file fonts?? I've t