You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2002/07/09 01:55:36 UTC
DO NOT REPLY [Bug 10571] New: -
Monospaced Fonts Calculating Incorrect Width
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10571>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10571
Monospaced Fonts Calculating Incorrect Width
Summary: Monospaced Fonts Calculating Incorrect Width
Product: Fop
Version: 0.20.3
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: awt renderer
AssignedTo: fop-dev@xml.apache.org
ReportedBy: wjdennis@qwest.net
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
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org