Issue 56015 - Some text rendered in "italics" style is clipped on right edge
Summary: Some text rendered in "italics" style is clipped on right edge
Status: CONFIRMED
Alias: None
Product: Draw
Classification: Application
Component: editing (show other issues)
Version: OOO 2.0 Beta2
Hardware: PC Windows, all
: P3 Trivial (vote)
Target Milestone: AOO Later
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-14 16:43 UTC by 7kaltoid
Modified: 2013-02-07 21:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Example of cropping font when rendering in italics (7.83 KB, application/vnd.sun.xml.draw)
2005-10-14 16:46 UTC, 7kaltoid
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
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
.