Bug 6474 - FOP doesn't handle non-integer font-sizes (e.g. 10.5) correctly.
Summary: FOP doesn't handle non-integer font-sizes (e.g. 10.5) correctly.
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.20.2
Hardware: Other other
: P3 major
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
: 6458 6996 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-02-14 21:37 UTC by Arnd Beissner
Modified: 2012-04-01 06:46 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arnd Beissner 2002-02-14 21:37:25 UTC
While examining my bug #6458, I found that FOP has problems handling non-integer
font-sizes (non-integral point sizes).

The summary of my source browsing and debugging is this:
- FOP accepts non-integral point sizes
- FOP hands non-integral point sizes over to formatters (e.g. PDF)
- Character widths of the default fonts (I checked with Helvetica) are
  calculated as if they had the next lower integral font size. This may
  be so either because the metrics file generator is broken or because
  of a bug in FOP - I did not check this).
- The PDF renderer DOES handle non-integral font sizes correctly. Because
  the renderer partially performs his own calculations, the result
  will - depending on the circumstances - either look good (but measure wrong)
  or totally broken. One effect that can happen is described in #6458.
- I rated this bug as major, because this bug can be very difficult
  to diagnose for uses - lots of wasted time.
The current workaround is not to use non-integral font sizes.

- As a consequence, at least FOP should round font sizes in formatting
  objects down to the next lower integral point size.
Comment 1 Arnd Beissner 2002-02-14 21:41:07 UTC
*** Bug 6458 has been marked as a duplicate of this bug. ***
Comment 2 J.Pietschmann 2002-07-19 06:42:34 UTC
Seems to be fixed in 0.20.4. Please check whether the fix is complete.
Comment 3 J.Pietschmann 2002-07-19 06:53:48 UTC
*** Bug 6996 has been marked as a duplicate of this bug. ***
Comment 4 Glenn Adams 2012-04-01 06:46:07 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed