The steps required to register your special mathematical font within FOP
is described in: http://xml.apache.org/fop/fonts.html
There's nothing more we can tell you. Many people use that successfully
even for Russian, Asiatic etc. fonts.

But there are a few other comments:

You use "any" in the font family. FOP isn't very intelligent WRT font
selection strategies. "any" for the PDF renderer defaults to the Base14
font Helvetica which doesn't contain most of your characters. FOP
doesn't automagically switch to another font that contains these
characters, yet. You have to explicitly state the font to use.

I've got the Windows standard font "Arial" run through TTFReader on my
machine. It is registered in the userconfig.xml and the userconfig.xml
is active (-c userconfig.xml). Now, when I change the font-family to
"Arial" in your unicode.fo I get the correct characters for all
mathematical symbols that exist in the Arial font. That's not all, but
at least a fair number. Which proves that it works. Characters that
don't exist in the font get substituted. So as long as you correctly
specify a font that contains the characters in question FOP will display
them.

I've also quickly tested fo:inline. Works fine.

I also suggest upgrading to FOP version 0.20.5rc (maybe not 0.20.5rc2
because there could be a showstopper). Since 0.20.4 there have been
several bugfixes in TrueType/OpenType handling.

Do you get any error messages during TTFReader?

On 03.04.2003 05:18:34 Jun, Edward wrote:
> Thanks for your input.
> I've also tried generating the font metrics file, register the fonts, etc..
> But no to no success to make it work for pdf. :(
> 
> Has anyone been able to register fonts with FOP? (esp. mathematical)
> Can you walk me through the steps to make it work?
> I pretty much run the TTFReader, added the fonts in userconfig.xml,
> Recompiled FOP, and even ran it with the -c option to the userconfig.xml.
> Then I specified the font in <fo:inline> 
> 
> Am I missing anything?


Jeremias Maerki

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to