https://issues.apache.org/bugzilla/show_bug.cgi?id=47110
--- Comment #2 from Michael Reiche <[email protected]> 2009-04-28 03:07:26 PST --- When using the bitmap renderering for fonts in the PCLRenderer, some (special) characters get their top cut. Se the attached PNG image where the 2 instances of the å character get the "ring" cut. The text was produced by the following snippet of xsl-fo: <fo:block line-height="12.0pt" white-space-collapse="false" linefeed-treatment="preserve" text-align="start" color="#000000" font-family="Verdana" font-size="10.0pt"> Vi håber, at vi på et senere... </fo:block> The trouble is present with the 0.95 and possible the trunk version of FOP (as PCLRender.java isn't modified in the section handling this). One quick work-around is to modify the PCLRenderer.java in the method "protected void renderText(final TextArea text)" and add some more space for characters that expand above the ascent line. Change: final int additionalBPD = maxAscent - baseline; To: final int additionalBPD = maxAscent - baseline + font.getCapHeight()/2; This is not guaranteed to work for any font, but as I don't have any information on how to collect the right value, nor any statistical knowledge on fonts reaching higher than the ascent line, I just found this to be a suitable value. The fix could generate some trouble on text renderered near the top of page or the bottom of the page. This is not important to my use, but as the å are used a lot in the scandinavian languages, it is a showstopper when it's not rendered correctly. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
