New issue
Advanced search Search tips

Issue 915570 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

[DirectWrite] Don't use subpixel positioning for bitmap glyphs

Reported by potassiu...@gmail.com, Dec 17

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36

Example URL:
http://sinst.html.xdomain.jp/zengaku/jkkn/aa.html

Steps to reproduce the problem:
1. Access a page uses bitmap font such as "MS Pゴシック"

What is the expected behavior?
Firefox has already fixed this issue in 2011.
The expected behavior is as below:

Bugzilla:
https://bugzilla.mozilla.org/show_bug.cgi?id=574907

Attached screenshot:
https://bug574907.bmoattachments.org/attachment.cgi?id=454221

Quotation:
DirectWrite uses subpixel positioning for each glyph. However, it's not good for bitmap glyphs.
See 15.5px case, "も" and "区" are contiguous. And in 15.9px case, "M" and "i" are contiguous.
If we can know what size is rendered as bitmap, we can round the font size. Otherwise, we should always round the font size if the font has bitmap glyph.

What went wrong?
Bitmap gryphs are misaligned. 
Subpixel positioning by DirectWrite is unnecessary in bitmap fonts.

In particular, "Shift_JIS art" (known as "アスキーアート" or "AA" in Japan) is terribly misaligned.
Shift_JIS art usually uses a bitmap font, "MS Pゴシック" (MS P Gothic).

The attached files are example screenshots from http://theateryaruo.blog71.fc2.com/blog-entry-302.html

Sample of this art is: http://sinst.html.xdomain.jp/zengaku/jkkn/aa.html
Firefox displays this art correctly, but Chrome doesn't.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? N/A 

Did this work before? N/A 

Does this work in other browsers? No
 Browsers that uses DirectWrite such as IE, Edge (except for Firefox)

Chrome version: 70.0.3538.110  Channel: n/a
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: 

Some people has reported the issue on their blogs:
http://altebute.hatenablog.com/entry/2014/08/30/175901
https://yaruoguide.com/about/zure.php

but not yet here, so I report now.

Over 40% of Japanese people use Chrome, so this issue has an enormous impact.
Large number of Japanese people are suffering from this issue, and they are waiting for fix.

Some people devise scripts that correct the misalignment.
Other people devise own fonts that don't affected by this issue.
However, any of them are incomplete.
 
dekinaiko.png
3.6 KB View Download
dekinaiko_zure.png
3.7 KB View Download
Components: -Blink Blink>Fonts
Labels: Needs-Triage-M70
Cc: drott@chromium.org
Status: Available (was: Unconfirmed)

Sign in to add a comment