Apache OpenOffice (AOO) Bugzilla – Issue 56015
Some text rendered in "italics" style is clipped on right edge
Last modified: 2013-02-07 21:56:39 UTC
This problem specifically occurs with fonts that do not have an included italics style, but are italicized by the program itself. First discovered with Impact typeface. When the style is changed from Plain to italics, the length of the rendering area remains fixed at the length of the base of the typeface. This behavior results in cropping the upper portions of the typeface that extend to the right of the base of the last character. Attachment/example with instructions to follow.
Created attachment 30443 [details] Example of cropping font when rendering in italics
(Forgot comments can't be added to attachments.) To see the problem, highlight the text "RuidosoBuilders.com" from within Draw. If the typeface is "Impact" and Italic style is selected, the top right of the "m" is cropped to be even with the bottom right of that letter. Now, change the typeface to one that does have an included Italics style. Arial is one such typeface. Note that now the rendering area extends to the right of the entire last character. Exporting the file to one of the bitmap formats (jpg, png) reduces but does not eliminate the amount of cropping. Saving as PDF eliminates the cropping, but that format cannot be rendered as part of an html document.
Reproducible. Reassigned. Who's is this?
Can you take a look at it?
Only on windows.
HDU->FME: Use GetTextBoundRect() instead of GetTextWidth() to get the physical width of the text as opposed to the logical advance width. The difference between real and synthetic italic fonts regarding this behaviour is that the real italic fonts have adjusted left-side/right-side bearings.
.