Issue 56015

Summary: Some text rendered in "italics" style is clipped on right edge
Product: Draw Reporter: 7kaltoid <dthompson>
Component: editingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: OOO 2.0 Beta2   
Target Milestone: AOO Later   
Hardware: PC   
OS: Windows, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Example of cropping font when rendering in italics none

Description 7kaltoid 2005-10-14 16:43:03 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.
Comment 1 7kaltoid 2005-10-14 16:46:25 UTC
Created attachment 30443 [details]
Example of cropping font when rendering in italics
Comment 2 7kaltoid 2005-10-14 17:24:01 UTC
(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.
Comment 3 wolframgarten 2005-10-17 08:54:14 UTC
Reproducible. Reassigned. Who's is this?
Comment 4 groucho266 2005-10-17 09:19:49 UTC
Can you take a look at it?
Comment 5 wolframgarten 2005-10-17 10:36:25 UTC
Only on windows.
Comment 6 hdu@apache.org 2005-10-17 13:26:39 UTC
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.
Comment 7 frank.meies 2005-10-18 07:13:50 UTC
.