Open Bug 574908 Opened 14 years ago Updated 2 years ago

[DW] rendering of font with bitmap glyphs is different when the font-style is italic or oblique

Categories

(Core :: Graphics, defect)

x86
Windows 7
defect

Tracking

()

Tracking Status
blocking2.0 --- -

People

(Reporter: masayuki, Unassigned)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

See the testcase.

> data:text/html;charset=utf-8,<p style="font-family: MS PGothic; font-size:16px;"><span style="font-style: normal;">これはMS PGothicで表示されています</span><br><span style="font-style: italic;">これはMS PGothicで表示されています</span><br><span style="font-style: oblique;">これはMS PGothicで表示されています</span></p>

MS PGothic is rendered by bitmap glyphs at font-size: 16px. However, if the font-style is italic or oblique, the bitmap glyphs are not used.

The testcase may look better for you, however, in following case, it doesn't looks good.

> <p style="font-family: MS PGothic;">There <em>are</em> some words.</p>

The "are" is only rendered with anti-aliasing. It feels no good.

I'm not sure this is DirectWrite's spec or not. We should check the IE9's behavior.
Blocks: dwrite
No longer depends on: dwrite
We should check on IE9 here.
IE9 has the same rendering as we do.
I won't block on this for now, because it's not clear to me that we're doing the wrong thing here.
blocking2.0: ? → -
I think that if IE9 *final* renders the testcase same as us, this bug should be marked as INVA.
It looks to me like the Cleartype/GDI rendering uses the outline version of the font, *not* the bitmap glyphs.  MS PGothic has no italic face so that makes sense.  Note how some of the stems are clearly thicker than the bitmap case, that would not happen via manual obliquing.  So the comparison here is really between a poorly hinted TrueType font rendering in Cleartype/GDI vs. DirectWrite.

Rather than just following IE, I think we should base the choice on whether or not text at a given size becomes unreadable when rendered with DirectWrite instead of Cleartype/GDI.  Zooming in and out on the testcase I don't see any size where the Cleartype/GDI rendering appears more readable.  It looks like crap at all sizes! ;)

I think this should be marked invalid unless we can find a case where DirectWrite rendering is clearly worse.
Summary: [DW] Bitmap glyph is ignored when the font-style is italic or oblique → [DW] rendering of font with bitmap glyphs is different when the font-style is italic or oblique
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: