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 have to adjust Java2DFontMetrics so you can derive other Font instances from the initial ones in FontSetup. Patches welcome.
On 18.01.2007 17:04:37 David Morales wrote: > 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 fonts?? > > Thanks. > > > > Adrian Cumiskey escribió: > > 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 sits in the jre/lib folder of your java > > installation. > > > > Adrian. > > > > David Morales wrote: > >> 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?? 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: > >>> > >>> http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/200701.mbox/[EMAIL > >>> PROTECTED] > >>> > >>> > >>> If that doesn't help you then please re-phrase the question. > >>> > >>> Thanks, > >>> > >>> Chris Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
