Re: Extract font width using FOP

atalante <[email protected]>
Newsgroups gmane.text.xml.fop.user
Message-ID <[email protected]>
Maybe late, but this post was helpful for me.
As cdellasanta i wanted to get the font object using a custom font.


cdellasanta wrote
> And now I need an additional support; As I mentioned in my first post I'm
> using a custom font, loaded through the custom fop.xconf.
> 
> But the 

>  loads only the predefined fonts metrics (F1 to F14).
> 
> How do I load the metrics of my custom font?
> 
> Best regards,
> Curzio


I explore the fop classes and find my happiness on the FontListGenerator
class.

And then this is a function i wrote for me for retrieving a Font object.
Works with all fonts specified in the fop file configuration.





--
View this message in context: http://apache-fop.1065347.n5.nabble.com/Extract-font-width-using-FOP-tp37360p43763.html
Sent from the FOP - Users mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.