gongshoudao / noto

Automatically exported from code.google.com/p/noto
0 stars 0 forks source link

CJK: fontconfig cannot distinguish between Thin and Light #200

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. Install 'Noto Sans CJK' OTC (all weights) or super OTC on Linux

2. Go to the following page in Firefox 
 https://deb53d85a427140a6e10ee61e1ceb3408c8407f2.googledrive.com/host/0B153_ao11p4QR2s3RWRXMUhJa1U/notosanscjk_weights.html

3. In the column 2 (Local Font), requesting css weight=100 and 300 give 'Light' 
(fsWeight=300) in Firefox. 

This is because fontconfig maps both fsWeight=250 and fsWeight=300 to 
fontconfigWeight=50.  

Behdad made a change in fontconfig in July to distinguish them in the 
fontconfig trunk. A new release will be made soon. We have to evangelize Linux 
distro builders to update fontconfig to an upcoming new release. 

I'll update fontconfig on Chrome OS, but 
Chrome/Blink on Linux/Chrome OS has a lot more serious issue (it can only use 
two weights at the moment. See http://crbug.com/368442 ) 

Original issue reported on code.google.com by jungs...@google.com on 12 Nov 2014 at 11:55

GoogleCodeExporter commented 9 years ago
See the screenshot at  http://goo.gl/iqY88f  (LHS is Firefox). When 
fsWeight=100 was used for Thin, Thin (css weight requested = 100) and Light 
(css weight requested = 300) are distinguished by Firefox (because fontconfig 
maps fsweight=100 to fontconfigWeight=0 and fsweight=300 to fontconfigWeight = 
50). 

Original comment by jshin@chromium.org on 13 Nov 2014 at 12:26

GoogleCodeExporter commented 9 years ago
Let's keep separate this from bug 199 because this issue can be dealt with an 
upcoming fontconfig release (I'm waiting for the official release before 
upgrading fc on CrOS). 

Original comment by jshin@chromium.org on 27 Jan 2015 at 6:49