Bug 10571 - Monospaced Fonts Calculating Incorrect Width
Summary: Monospaced Fonts Calculating Incorrect Width
Status: CLOSED DUPLICATE of bug 1180
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: awt renderer (show other bugs)
Version: 0.20.3
Hardware: All All
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-08 23:55 UTC by Bill Dennis
Modified: 2012-04-01 13:52 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bill Dennis 2002-07-08 23:55:35 UTC
Monospaced Fonts with Spaces (x'20') in them do not align correctly in the AWT 
Renderer.  The problem lies in the class AWTFontMetrics, in the method:  width
(int i, String family, int style, int size).  

The width() method is incorrectly multiplying the width of spaces by a factor 
1.4, regardless of whether the font is proportional or monospaced.

Suggestion resolution:  1) Remove the 1.4 factor for all fonts; or 2) determine 
whether the font is proportional or monospaced and use the 1.4 factor only for 
proportional fonts.

Bill Dennis
Comment 1 Bill Dennis 2002-07-08 23:56:18 UTC
Note:  Maybe be related to but 1180.
Comment 2 Oleg Tkachenko 2002-11-14 21:51:29 UTC

*** This bug has been marked as a duplicate of 1180 ***
Comment 3 Glenn Adams 2012-04-01 13:52:04 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs