New issue
Advanced search Search tips

Issue 656806 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner: ----
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 3
Type: Bug-Regression



Sign in to add a comment

Noto Sans CJK font (CFF) is not used even when explicitly specified

Project Member Reported by js...@chromium.org, Oct 17 2016

Issue description

Version: 55.0.2882.0 dev (64-bit)
OS: Linux Ubutun Trusty 

What steps will reproduce the problem?
(1) Install Noto Sans CJK (ttc/otc)  
(2) Go to data:text/html;charset=utf-8,<span style="font-family: Noto Sans CJK KR">%ED%95%9C%EA%B8%80</span>
(3) In DOM inspector, see what font is used for '한글' (at the bottom of computed tab)

What is the expected output?


Noto Sans CJK KR is used. 

What do you see instead?

Another font is used. 

Please use labels and text to provide additional information.

 

Comment 1 by js...@chromium.org, Oct 17 2016

OTOH, 'NanumGothic' (TTF with truetype outline) is used when specified. 

data:text/html;charset=utf-8,<span style="font-family: NanumGothic;">%EC%A7%80%EB%8F%84</span>

Nanum fonts can be installed by 'sudo apt-get install fonts-nanum' 


Comment 2 by js...@chromium.org, Oct 17 2016

Status: Fixed (was: Untriaged)
56.0.2894.0 (64-bit) works as expected. 

It looks like it's fixed by Dominik's fix for  bug 649468  and a skia fix is merged to 55 branch (skia). 


It's not clear why putting CFF fonts down the list prevents an explicitly named font from being matched (as in this bug). 

Shouldn't an explicitly named font family be matched regardless of its position in the list returned by fontconfig? 

BTW, on Chrome OS, it works just fine without a fix perhaps because 'Noto Sans CJK' is at the top of the list in fontconfig's configuration file. 


Sign in to add a comment