You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Jordan Soet <jd...@interchange.ubc.ca> on 2006/05/18 09:51:27 UTC
Superscript and Subscript with custom fonts
I'm having a problem with superscripts and subscripts in fop 0.92beta when
using custom fonts. The superscripts and subscripts work fine with the
default fonts, but then not with the custom fonts that I'm using. I added
them in using the specified method, from the ttf files and they seem to work
fine otherwise. In the meantime I just worked around it by manually shifting
the baseline 5pt up or down. I've attached a sample file as well as my font
metric file.
Thanks,
Jordan
Re: Superscript and Subscript with custom fonts
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Please recreate the font metric file with FOP 0.92beta and try again.
Some TrueType fonts don't contain an explicit value for "x-Height". This
value is used in the computation of the super- and subscript position.
If you look at your metrics file you'll see that x-height is "0".
I've added code in 0.92beta that derives the x-Height value from glyph
metrics inside the fonts. Recreating the font metrics will solve your
problem.
On 18.05.2006 09:51:27 Jordan Soet wrote:
> I'm having a problem with superscripts and subscripts in fop 0.92beta when
> using custom fonts. The superscripts and subscripts work fine with the
> default fonts, but then not with the custom fonts that I'm using. I added
> them in using the specified method, from the ttf files and they seem to work
> fine otherwise. In the meantime I just worked around it by manually shifting
> the baseline 5pt up or down. I've attached a sample file as well as my font
> metric file.
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org