Chrome standard font affects custom font positioning
Reported by
radarn...@gmail.com,
Aug 23
|
|||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.75 Safari/537.36 Example URL: http://www.dmm.com/netgame_s/kancolle/ Steps to reproduce the problem: Just open the website (it's a Japan only web game, uses PIXI.js library) What is the expected behavior? The text in canvas should render at correct height. What went wrong? In Chrome, text renders correctly. However in Chromium (same version number) it renders higher than normal (higher comparing to Chrome) Since this game is limited to Japan only, you can see my attached file for the difference, notice all the white texts (mostly numbers) renders higher on Chromium (Up) comparing to Chrome (Down). Does it occur on multiple sites: N/A Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? Yes Chrome version: 68.0.3440.75 Channel: n/a OS Version: 6.1 (Windows 7, Windows Server 2008 R2) Flash Version: At first I thought this was a problem with me using an older version of Chromium (65) but today I tried Chromium with same version as Chrome (68) it still doesn't render the same. How is Chromium different from Chrome??
,
Aug 23
,
Aug 23
,
Aug 23
,
Aug 23
,
Aug 23
We will need a better way to reproduce this (a page we can actually open), otherwise there's nothing much we can do.
,
Aug 26
This is likely due to the custom web font not having full coverage of the glyphs needed to render the text. Never the less, this needs a reproduction.
,
Sep 2
The NextAction date has arrived: 2018-09-02
,
Dec 6
radarnyan@: What are your "Standard font" in Chrome / Chromium?
,
Dec 7
@ksakamoto I can't remember which font setting it was in the fisrt screenshot, but it should be the default chrome setting (en-us locale) The lower screenshot (which the texts are rendered lower) is taken with the standard font set to "Micosoft Yahei" (which I believe is the default for zh-cn locale) I can't confirm if this still happen right now as the said web game is under maintenance today which means I can't get to the screen where the screenshots was taken. One thing I can say is that I tried many font (for the standard font setting, like Arial, Meiryo, even Consolas) and they all results in different rendering height. I haven't come across any other site with similar problem either. Also, the web font used by the game is "A-OTF-UDShinGoPro-Light.woff2". I don't think I can upload it though.
,
Dec 7
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Dec 11
Confirmed that "Starndard font" affects test positioning and the texts are rendered by CanvasRenderingContext2D.fillText() with A-OTF-UDShinGoPro-Light.woff2. The font seems to have enough coverage of the glyphs, so I'm still not sure why "Standard font" affects the positioning. I'll try to create a small repro.
,
Dec 11
|
|||||||||||
►
Sign in to add a comment |
|||||||||||
Comment 1 by radarn...@gmail.com
, Aug 23