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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to