DO NOT REPLY [Bug 47110] PCLRenderer: Bitmap rendered text are cut in height.

2012-04-06 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47110

--- Comment #3 from Glenn Adams gl...@skynav.com 2012-04-07 01:43:14 UTC ---
resetting P2 open bugs to P3 pending further review

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


DO NOT REPLY [Bug 47110] PCLRenderer: Bitmap rendered text are cut in height.

2012-04-06 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47110

Glenn Adams gl...@skynav.com changed:

   What|Removed |Added

   Priority|P2  |P3

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


DO NOT REPLY [Bug 47110] PCLRenderer: Bitmap rendered text are cut in height.

2009-04-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47110





--- Comment #1 from Michael Reiche reiche.mich...@gmail.com  2009-04-28 
03:07:16 PST ---
Created an attachment (id=23557)
 -- (https://issues.apache.org/bugzilla/attachment.cgi?id=23557)
PCL Image showing text being cut

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


DO NOT REPLY [Bug 47110] PCLRenderer: Bitmap rendered text are cut in height.

2009-04-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47110





--- Comment #2 from Michael Reiche reiche.mich...@gmail.com  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 aring; 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=#00
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
aring; 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.