xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50723] Incorrect text underlines position for some fonts
Date Thu, 10 Feb 2011 16:49:08 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50723

--- Comment #2 from Jeremias Maerki <jeremias@apache.org> 2011-02-10 11:49:05 EST ---
It's a bit of both actually. See my comment on TTFFile.determineAscDesc(). I've
had to come up with some tricks to determine the best possible values for most
fonts. But Alexander now has some fonts where this doesn't work. I've spent
hours trying to improve this and I don't know if there's a better solution. If
anyone has one, I'm thankful but please do extensive tests with as many fonts
as possible!

The part that is a FOP issue is the determination of the underline position
(and thickness). We currently use a formula based on the baseline, ascender and
descender. See AbstractPathOrientedRenderer.renderTextDecoration(). Some fonts
(TrueType and Type 1) provide the desired position and thickness of the
underline (but not strike and overline). Ideally, we would of course use that.
If these values are reliable is, of course, another question again.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message