Space is displayed wider than expected
Reported by
kangil....@samsung.com,
Feb 10 2017
|
||||||
Issue description
Example URL:
Test case is described
Steps to reproduce the problem:
1. /system/etc/fonts.xml should have "ja" specific font but it doesn't have space glyph
For example in /system/etc/fonts.xml,
<!-- fallback fonts -->
<family lang="und-Zsye">
<font weight="400" style="normal">NotoColorEmoji.ttf</font>
</family>
<family lang="ja">
<font weight="400" style="normal">UDGothic-Regular.ttf</font>
</family>
2. Open a page of lang="ja"
For example,
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
</head>
<body>
A B
</body>
</html>
What is the expected behavior?
Page displays like "A B"
What went wrong?
It displays space wider like "A B"
Does it occur on multiple sites: N/A
Is it a problem with a plugin? N/A
Did this work before? N/A
Does this work in other browsers? N/A
Chrome version: 55.0.2883.91 Channel: stable
OS Version: 7.0
Flash Version: Shockwave Flash 24.0 r0
Here is brief description of my investigation result.
UDGothic font has 'U+4E00' glyph so it is set as default Japanese font.
Unfortunately it doesn't have space glyph.
Therefore, font decision algorithm seems iterating all fallback fonts and finally NotoColorEmoji is picked up.
However, space is not displayed a word spacing but few more.
I've got to know basic flow of code but no idea what is right direction to fix this.
For example, ignoring emoji in case of space(U+0020) character is right thing to do?
In addition, I would like to share information given by company Android framework developer.
According to him, fallback fonts list order can be modified based on request from customer. i.e. Carrier
Given reason, he worries about unwanted behavior change on Browser and WebView.
Here are few related questions.
* Would it be possible to have own font list?
* Any recommendations on fallback fonts list?
Thanks!
,
Feb 10 2017
,
Feb 14 2017
,
Oct 17 2017
kangil.han@ are you still seeing this issue in latest chrome stable?If yes, please provide the OS and device details.
,
Nov 23 2017
,
Oct 23
Closing due to inability to reproduce and lack of feedback. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by junov@chromium.org
, Feb 10 2017