New issue
Advanced search Search tips

Issue 906006 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Nov 17
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

render &nbsp incorrectly in CentOS Chrome

Reported by hejinjun...@gmail.com, Nov 16

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36

Steps to reproduce the problem:
1. open the index.html in CentOS chrome or  chromium web browser
2. find the underline difference between CentOS and other OS(macOS, windows, ubuntu)

What is the expected behavior?
the underline is render same as the other OS

What went wrong?
the underline is render shorter than expect

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 70.0.3538.102  Channel: stable
OS Version: CentOS 7.5.1804
Flash Version: 

this bug is also can reproduce in CentOS 7.3
 
I use same font-family, but the issue also can reproduce
same font, CentOS render longer than other OS
compare.png
78.8 KB View Download
index.html
654 bytes View Download
macos.png
255 KB View Download
centos.png
145 KB View Download
Cc: masonfreed@chromium.org
Components: -Blink>Paint Blink>Fonts
Owner: drott@chromium.org
Status: Assigned (was: Unconfirmed)
@drott, can you comment here? My guess is that the Microsoft YaHei font isn't available on the CentOS system, so these are being rendered with different fonts. Hence the longer underline.
Status: WontFix (was: Assigned)
It is not guaranteed that two different platforms produce the same horizontal run length, even if the font is identical. This is due to differences in what exact metrics they read from the font, or how rasterization is configured (antialiasing, hinting, subpixel positioning, etc.).

Great tip, thank you, now I think it's CentOS's issue to render font not Chrome's.

Sign in to add a comment