Open GoogleCodeExporter opened 9 years ago
Original comment by jungs...@google.com
on 12 Nov 2014 at 11:36
Original comment by jungs...@google.com
on 12 Nov 2014 at 11:37
I did a new experiment and the result is different from what I wrote above and
is still NOT what we expect to see. I couldn't reproduce what I wrote above.
* Procedure
1. Change the weights of Noto Sans CJK {JP,KR,TC,SC} Thin to {240,200,170,130}
2. Change the weight of Noto Sans KR Thin 100
3. Install all 7 weights of Noto Sans JP (v 1.002), Noto Sans CJK {JP,KR,TC,SC} and Noto Sans KR with Thin's weight changes per #1 and #2
4. Install all 7 weights of 20140609 version of Noto Sans Simplified Chinese (weight is 100 for Thin)
5. Restart (not necessary, but just in case) Firefox, Chrome and Safari
6. View the attached HTML page in all three browsers;
- It has 8 columns for testing Noto Sans CJK/JP/KR?SC fonts with different OS2.usWeights for Thin (250, 240, 200, 170, 130, 100, 100).
- The last column is Apple SD Gothic Neo that comes in 9 weights
- It has 9 rows from font-weight in CSS ranging from 100 to 900.
7. Remove DemiLight instances of all Noto Sans* fonts.
8. Repeat 5 and 6
Results:
1. In step 6, all three browsers in all columns (except for the last which is
Apple SD Gothic Neo) use 'DemiLight' for font-weight={100,200,300}.
2. In step 8 (with DemiLight removed), for font-weight={100,200,300) are
rendered with 'Light'.
3. The last column (Apple SD Gothic Neo) : Firefox on the one hand and
Chrome/Safari on the other hand behave differently.
a. Firefox : The last column (Apple SD Gothic Neo) is rendered in 9 distinct
weight instances of Apple SD Gothic Neo
b. Chrome and Safari : It appears that font-weight={100,200,300} are NOT
distinguishable. It appears that 'Apple SD Gothic Neo Light' is used for
font-weight={100,200,300}. The reason I'm not sure is Chrome's DOM Inspector
does not give the full font name (including weight) in Computed section for
this font (it does give the full font names for Noto Sans fonts).
-----------------
Given that all the browsers behave identically (except for Apple SD Gothic
Neo), something in CoreText is at play here and we have to talk to Apple to
figure out what's going on.
BTW, TextEdit can distinguish all 7 weights (it does not use numeric weight. I
can simply choose 'weight' in the menu).
Original comment by jshin@chromium.org
on 14 Jan 2015 at 1:22
Attachments:
I'll attach the screenshots from step 8 tomorrow for the record.
Original comment by jshin@chromium.org
on 14 Jan 2015 at 1:23
Apple SD Gothic Neo {Thin...Heavy} have very interesting values for
OS2.usWeight and OS2.bWeight (panose) :
Thin usWeight 300
Thin bWeight 3
UltraLight usWeight 300
UltraLight bWeight 3
Light usWeight 400
Light bWeight 3
Regular usWeight 400
Regular bWeight 3
Medium usWeight 500
Medium bWeight 3
SemiBold usWeight 500
SemiBold bWeight 3
Bold usWeight 600
Bold bWeight 3
ExtraBold usWeight 600
ExtraBold bWeight 3
Heavy usWeight 600
Heavy bWeight 3
The fact that Firefox picks each of them in order for CSS
font-weight=[100..900] suggests that Firefox may do some hard-coding (with
subfamily names in the name table).
Original comment by jshin@chromium.org
on 14 Jan 2015 at 6:10
With DemiLight removed, Light is used for font-weight={100,200,300} in all
three browsers regardless of what OS2.usWeight value is used for Thin. Attached
is a screenshot taken with Chrome.
Original comment by jshin@chromium.org
on 15 Jan 2015 at 1:23
Attachments:
Blink (Chrome) bug : http://code.google.com/p/chromium/issues/detail?id=449256
Firefox bug : https://bugzilla.mozilla.org/show_bug.cgi?id=1122693
I'll file a bug against Webkit, too.
Original comment by jshin@chromium.org
on 16 Jan 2015 at 7:55
Oops: Chrome bug is https://code.google.com/p/chromium/issues/detail?id=449310
Original comment by jshin@chromium.org
on 16 Jan 2015 at 7:56
CSS-style list discussion:
http://lists.w3.org/Archives/Public/www-style/2015Jan/0076.html
Original comment by jshin@chromium.org
on 20 Jan 2015 at 7:55
In Firefox bug (https://bugzilla.mozilla.org/show_bug.cgi?id=1122693), John
Dagget provided more details :
https://bugzilla.mozilla.org/show_bug.cgi?id=1122693#c5
https://bugzilla.mozilla.org/show_bug.cgi?id=1122693#c3
https://bugzilla.mozilla.org/show_bug.cgi?id=931426
In short, Mozilla has to override the weight value reported by AppKit/CoreText
by adding a preference for Apple SD Gothic Neo (which also has a similar issue)
:
font.weight-override.AppleSDGothicNeo-Thin 100
Original comment by jshin@chromium.org
on 27 Jan 2015 at 12:14
Webkig bug for Apple SD Gothic Neo :
https://bugs.webkit.org/show_bug.cgi?id=140553
where it's suggested that using CTFontCreateForCSS
( https://bugs.webkit.org/show_bug.cgi?id=132159 ) might solve the problem (not
yet confirmed)
Original comment by jshin@chromium.org
on 27 Jan 2015 at 12:33
What I can try is to write a stand-alone program to see what weight is reported
by AppKit/CoreText for Noto Sans CJK and Roboto.
Note to myself: see
http://lxr.mozilla.org/mozilla-central/source/gfx/thebes/gfxMacPlatformFontList.
mm#434
Original comment by jshin@chromium.org
on 27 Jan 2015 at 6:42
Original comment by stua...@google.com
on 4 Feb 2015 at 2:18
Original issue reported on code.google.com by
jshin@chromium.org
on 12 Nov 2014 at 11:36