New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thin, ExtraLight and Light font weight metadata is incorrect #5

Closed
orffen opened this Issue Jan 12, 2017 · 8 comments

Comments

Projects
None yet
4 participants
@orffen

orffen commented Jan 12, 2017

For the ExtraLight, Light and Thin weights, fontconfig reports them all as "Regular" (weight 80):

Pattern has 23 elts (size 32)
	family: "Metropolis"(s) "Metropolis Extra Light"(s)
	familylang: "en"(s) "en"(s)
	style: "Extra Light"(s) "Regular"(s)
	stylelang: "en"(s) "en"(s)
	fullname: "Metropolis-ExtraLight"(s) "Metropolis Extra Light"(s)
	fullnamelang: "en"(s) "en"(s)
	slant: 0(i)(s)
	weight: 80(i)(s)
	width: 100(i)(s)
	foundry: "UKWN"(s)
	file: "./Metropolis-ExtraLight.otf"(s)
	index: 0(i)(s)
	outline: True(s)
	scalable: True(s)
	charset: 
	0000: 00000000 ffffffff ffffffff 7fffffff 00000000 89d0892e ffffffff ffffffff
	0001: cfcff0ff 66c3cc0c cfff31fe 7fffcc3f 00000000 00000000 00000000 00000000
	0002: 00000000 00800000 00000000 00000000 00000000 00000000 3f0000c0 00000000
	0003: 00000000 00000040 00000000 00000000 00000000 00000000 00000000 00000000
	001e: 00000000 00000000 00000000 00000000 0000003f 33000000 00000000 000c0000
	0020: 3318007c 06018044 00000000 00000000 00000000 00001000 00000000 00000000
	0022: 00040000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
(s)
	lang: aa|ay|bi|br|bs|ch|co|cs|cy|da|de|en|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gv|ho|hr|hu|ia|id|ie|io|is|it|lb|lt|mg|nb|nds|nl|nn|no|nr|nso|ny|oc|om|pl|pt|rm|sk|sl|sma|smj|so|sq|ss|st|sv|sw|tk|tl|tn|tr|ts|uz|vo|vot|wa|wen|xh|yap|zu|an|crh|csb|fil|hsb|ht|jv|kj|ku-tr|kwm|li|ms|ng|pap-an|pap-aw|rn|rw|sc|sg|sn|su|za(s)
	fontversion: 65536(i)(s)
	capability: "otlayout:DFLT"(s)
	fontformat: "CFF"(s)
	decorative: False(s)
	postscriptname: "Metropolis-ExtraLight"(s)
	color: False(s)
	symbol: False(s)

Pattern has 23 elts (size 32)
	family: "Metropolis"(s) "Metropolis Extra Light"(s)
	familylang: "en"(s) "en"(s)
	style: "Extra Light Italic"(s) "Italic"(s)
	stylelang: "en"(s) "en"(s)
	fullname: "Metropolis Extra Light Italic"(s)
	fullnamelang: "en"(s)
	slant: 100(i)(s)
	weight: 80(i)(s)
	width: 100(i)(s)
	foundry: "UKWN"(s)
	file: "./Metropolis-ExtraLightItalic.otf"(s)
	index: 0(i)(s)
	outline: True(s)
	scalable: True(s)
	charset: 
	0000: 00000000 ffffffff ffffffff 7fffffff 00000000 89d0892e ffffffff ffffffff
	0001: cfcff0ff 66c3cc0c cfff31fe 7fffcc3f 00000000 00000000 00000000 00000000
	0002: 00000000 00800000 00000000 00000000 00000000 00000000 3f0000c0 00000000
	0003: 00000000 00000040 00000000 00000000 00000000 00000000 00000000 00000000
	001e: 00000000 00000000 00000000 00000000 0000003f 33000000 00000000 000c0000
	0020: 3318007c 06018044 00000000 00000000 00000000 00001000 00000000 00000000
	0022: 00040000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
(s)
	lang: aa|ay|bi|br|bs|ch|co|cs|cy|da|de|en|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gv|ho|hr|hu|ia|id|ie|io|is|it|lb|lt|mg|nb|nds|nl|nn|no|nr|nso|ny|oc|om|pl|pt|rm|sk|sl|sma|smj|so|sq|ss|st|sv|sw|tk|tl|tn|tr|ts|uz|vo|vot|wa|wen|xh|yap|zu|an|crh|csb|fil|hsb|ht|jv|kj|ku-tr|kwm|li|ms|ng|pap-an|pap-aw|rn|rw|sc|sg|sn|su|za(s)
	fontversion: 65536(i)(s)
	capability: "otlayout:DFLT"(s)
	fontformat: "CFF"(s)
	decorative: False(s)
	postscriptname: "Metropolis-ExtraLightItalic"(s)
	color: False(s)
	symbol: False(s)

Pattern has 23 elts (size 32)
	family: "Metropolis"(s) "Metropolis Light"(s)
	familylang: "en"(s) "en"(s)
	style: "Light"(s) "Regular"(s)
	stylelang: "en"(s) "en"(s)
	fullname: "Metropolis-Light"(s) "Metropolis Light"(s)
	fullnamelang: "en"(s) "en"(s)
	slant: 0(i)(s)
	weight: 80(i)(s)
	width: 100(i)(s)
	foundry: "UKWN"(s)
	file: "./Metropolis-Light.otf"(s)
	index: 0(i)(s)
	outline: True(s)
	scalable: True(s)
	charset: 
	0000: 00000000 ffffffff ffffffff 7fffffff 00000000 89d0892e ffffffff ffffffff
	0001: cfcff0ff 66c3cc0c cfff31fe 7fffcc3f 00000000 00000000 00000000 00000000
	0002: 00000000 00800000 00000000 00000000 00000000 00000000 3f0000c0 00000000
	0003: 00000000 00000040 00000000 00000000 00000000 00000000 00000000 00000000
	001e: 00000000 00000000 00000000 00000000 0000003f 33000000 00000000 000c0000
	0020: 3318007c 06018044 00000000 00000000 00000000 00001000 00000000 00000000
	0022: 00040000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
(s)
	lang: aa|ay|bi|br|bs|ch|co|cs|cy|da|de|en|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gv|ho|hr|hu|ia|id|ie|io|is|it|lb|lt|mg|nb|nds|nl|nn|no|nr|nso|ny|oc|om|pl|pt|rm|sk|sl|sma|smj|so|sq|ss|st|sv|sw|tk|tl|tn|tr|ts|uz|vo|vot|wa|wen|xh|yap|zu|an|crh|csb|fil|hsb|ht|jv|kj|ku-tr|kwm|li|ms|ng|pap-an|pap-aw|rn|rw|sc|sg|sn|su|za(s)
	fontversion: 65536(i)(s)
	capability: "otlayout:DFLT"(s)
	fontformat: "CFF"(s)
	decorative: False(s)
	postscriptname: "Metropolis-Light"(s)
	color: False(s)
	symbol: False(s)

Pattern has 23 elts (size 32)
	family: "Metropolis"(s) "Metropolis Light"(s)
	familylang: "en"(s) "en"(s)
	style: "Light Italic"(s) "Italic"(s)
	stylelang: "en"(s) "en"(s)
	fullname: "Metropolis Light Italic"(s)
	fullnamelang: "en"(s)
	slant: 100(i)(s)
	weight: 80(i)(s)
	width: 100(i)(s)
	foundry: "UKWN"(s)
	file: "./Metropolis-LightItalic.otf"(s)
	index: 0(i)(s)
	outline: True(s)
	scalable: True(s)
	charset: 
	0000: 00000000 ffffffff ffffffff 7fffffff 00000000 89d0892e ffffffff ffffffff
	0001: cfcff0ff 66c3cc0c cfff31fe 7fffcc3f 00000000 00000000 00000000 00000000
	0002: 00000000 00800000 00000000 00000000 00000000 00000000 3f0000c0 00000000
	0003: 00000000 00000040 00000000 00000000 00000000 00000000 00000000 00000000
	001e: 00000000 00000000 00000000 00000000 0000003f 33000000 00000000 000c0000
	0020: 3318007c 06018044 00000000 00000000 00000000 00001000 00000000 00000000
	0022: 00040000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
(s)
	lang: aa|ay|bi|br|bs|ch|co|cs|cy|da|de|en|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gv|ho|hr|hu|ia|id|ie|io|is|it|lb|lt|mg|nb|nds|nl|nn|no|nr|nso|ny|oc|om|pl|pt|rm|sk|sl|sma|smj|so|sq|ss|st|sv|sw|tk|tl|tn|tr|ts|uz|vo|vot|wa|wen|xh|yap|zu|an|crh|csb|fil|hsb|ht|jv|kj|ku-tr|kwm|li|ms|ng|pap-an|pap-aw|rn|rw|sc|sg|sn|su|za(s)
	fontversion: 65536(i)(s)
	capability: "otlayout:DFLT"(s)
	fontformat: "CFF"(s)
	decorative: False(s)
	postscriptname: "Metropolis-LightItalic"(s)
	color: False(s)
	symbol: False(s)

Pattern has 23 elts (size 32)
	family: "Metropolis"(s) "Metropolis Thin"(s)
	familylang: "en"(s) "en"(s)
	style: "Thin"(s) "Regular"(s)
	stylelang: "en"(s) "en"(s)
	fullname: "Metropolis-Thin"(s) "Metropolis Thin"(s)
	fullnamelang: "en"(s) "en"(s)
	slant: 0(i)(s)
	weight: 80(i)(s)
	width: 100(i)(s)
	foundry: "UKWN"(s)
	file: "./Metropolis-Thin.otf"(s)
	index: 0(i)(s)
	outline: True(s)
	scalable: True(s)
	charset: 
	0000: 00000000 ffffffff ffffffff 7fffffff 00000000 89d0892e ffffffff ffffffff
	0001: cfcff0ff 66c3cc0c cfff31fe 7fffcc3f 00000000 00000000 00000000 00000000
	0002: 00000000 00800000 00000000 00000000 00000000 00000000 3f0000c0 00000000
	0003: 00000000 00000040 00000000 00000000 00000000 00000000 00000000 00000000
	001e: 00000000 00000000 00000000 00000000 0000003f 33000000 00000000 000c0000
	0020: 3318007c 06018044 00000000 00000000 00000000 00001000 00000000 00000000
	0022: 00040000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
(s)
	lang: aa|ay|bi|br|bs|ch|co|cs|cy|da|de|en|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gv|ho|hr|hu|ia|id|ie|io|is|it|lb|lt|mg|nb|nds|nl|nn|no|nr|nso|ny|oc|om|pl|pt|rm|sk|sl|sma|smj|so|sq|ss|st|sv|sw|tk|tl|tn|tr|ts|uz|vo|vot|wa|wen|xh|yap|zu|an|crh|csb|fil|hsb|ht|jv|kj|ku-tr|kwm|li|ms|ng|pap-an|pap-aw|rn|rw|sc|sg|sn|su|za(s)
	fontversion: 65536(i)(s)
	capability: "otlayout:DFLT"(s)
	fontformat: "CFF"(s)
	decorative: False(s)
	postscriptname: "Metropolis-Thin"(s)
	color: False(s)
	symbol: False(s)

Pattern has 23 elts (size 32)
	family: "Metropolis"(s) "Metropolis Thin"(s)
	familylang: "en"(s) "en"(s)
	style: "Thin Italic"(s) "Italic"(s)
	stylelang: "en"(s) "en"(s)
	fullname: "Metropolis Thin Italic"(s)
	fullnamelang: "en"(s)
	slant: 100(i)(s)
	weight: 80(i)(s)
	width: 100(i)(s)
	foundry: "UKWN"(s)
	file: "./Metropolis-ThinItalic.otf"(s)
	index: 0(i)(s)
	outline: True(s)
	scalable: True(s)
	charset: 
	0000: 00000000 ffffffff ffffffff 7fffffff 00000000 89d0892e ffffffff ffffffff
	0001: cfcff0ff 66c3cc0c cfff31fe 7fffcc3f 00000000 00000000 00000000 00000000
	0002: 00000000 00800000 00000000 00000000 00000000 00000000 3f0000c0 00000000
	0003: 00000000 00000040 00000000 00000000 00000000 00000000 00000000 00000000
	001e: 00000000 00000000 00000000 00000000 0000003f 33000000 00000000 000c0000
	0020: 3318007c 06018044 00000000 00000000 00000000 00001000 00000000 00000000
	0022: 00040000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
(s)
	lang: aa|ay|bi|br|bs|ch|co|cs|cy|da|de|en|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gv|ho|hr|hu|ia|id|ie|io|is|it|lb|lt|mg|nb|nds|nl|nn|no|nr|nso|ny|oc|om|pl|pt|rm|sk|sl|sma|smj|so|sq|ss|st|sv|sw|tk|tl|tn|tr|ts|uz|vo|vot|wa|wen|xh|yap|zu|an|crh|csb|fil|hsb|ht|jv|kj|ku-tr|kwm|li|ms|ng|pap-an|pap-aw|rn|rw|sc|sg|sn|su|za(s)
	fontversion: 65536(i)(s)
	capability: "otlayout:DFLT"(s)
	fontformat: "CFF"(s)
	decorative: False(s)
	postscriptname: "Metropolis-ThinItalic"(s)
	color: False(s)
	symbol: False(s)

@orffen orffen changed the title from Fontconfig weights appear to be incorrect to Thin, ExtraLight and Light font weight metadata is incorrect Jan 12, 2017

@aurabindo

This comment has been minimized.

Show comment
Hide comment
@aurabindo

aurabindo Jan 22, 2017

In Gnome (Arch Linux), the font selection dialog correctly previews the font, but not rest of the system when applied. http://i.imgur.com/zhvvK52.png

Any quickfix?

aurabindo commented Jan 22, 2017

In Gnome (Arch Linux), the font selection dialog correctly previews the font, but not rest of the system when applied. http://i.imgur.com/zhvvK52.png

Any quickfix?

@orffen

This comment has been minimized.

Show comment
Hide comment
@orffen

orffen Jan 23, 2017

I use this fontconfig file at /etc/fonts/conf.d/ to correct the weights through config.

I believe the root cause is missing plist files for the affected fonts, but I'm not a font developer :)

orffen commented Jan 23, 2017

I use this fontconfig file at /etc/fonts/conf.d/ to correct the weights through config.

I believe the root cause is missing plist files for the affected fonts, but I'm not a font developer :)

@aurabindo

This comment has been minimized.

Show comment
Hide comment
@aurabindo

aurabindo Feb 20, 2017

@orffen it still doenst fix the issue :(

aurabindo commented Feb 20, 2017

@orffen it still doenst fix the issue :(

@chrismsimpson

This comment has been minimized.

Show comment
Hide comment
@chrismsimpson

chrismsimpson Mar 12, 2017

Owner

Not sure I know how to fix this. I used to use Linux but switch to Mac long ago because of issues like this (😅) as well as the fact I'm an iOS app developer.

All I can suggest is maybe try a different file format (OTF instead of TTF for example), otherwise if you come up with a fix, happy to accept a PR.

Owner

chrismsimpson commented Mar 12, 2017

Not sure I know how to fix this. I used to use Linux but switch to Mac long ago because of issues like this (😅) as well as the fact I'm an iOS app developer.

All I can suggest is maybe try a different file format (OTF instead of TTF for example), otherwise if you come up with a fix, happy to accept a PR.

@moyogo

This comment has been minimized.

Show comment
Hide comment
@moyogo

moyogo Mar 12, 2017

@chrismsimpson In Glyphs, you should change the Weight (in the Info > Instances tabs, between Style Name and Width) since Thin, Extra Light and Light weights have "Regular 400". But because both ExtraLight and Light give the value 250, your Extra Light and Light would still clash. Instead you can add the Custom Parameter "weightClass" and set it to 250 for Thin and Thin Italic, 300 for Extra Light and Extra Light Italic, 350 for Light and Light Italic.

moyogo commented Mar 12, 2017

@chrismsimpson In Glyphs, you should change the Weight (in the Info > Instances tabs, between Style Name and Width) since Thin, Extra Light and Light weights have "Regular 400". But because both ExtraLight and Light give the value 250, your Extra Light and Light would still clash. Instead you can add the Custom Parameter "weightClass" and set it to 250 for Thin and Thin Italic, 300 for Extra Light and Extra Light Italic, 350 for Light and Light Italic.

@chrismsimpson

This comment has been minimized.

Show comment
Hide comment
@chrismsimpson

chrismsimpson Mar 12, 2017

Owner

Ahh yes, you're completely right. I've posted an updated. If someone can confirm I've fixed the issue, I'll mark this issue as closed :)

Owner

chrismsimpson commented Mar 12, 2017

Ahh yes, you're completely right. I've posted an updated. If someone can confirm I've fixed the issue, I'll mark this issue as closed :)

@aurabindo

This comment has been minimized.

Show comment
Hide comment
@aurabindo

aurabindo Mar 21, 2017

@chrismsimpson yep, I can confirm! You can close the issue. Thanks! :)

aurabindo commented Mar 21, 2017

@chrismsimpson yep, I can confirm! You can close the issue. Thanks! :)

@orffen

This comment has been minimized.

Show comment
Hide comment
@orffen

orffen Aug 9, 2017

Yep, confirmed resolved - thanks!

orffen commented Aug 9, 2017

Yep, confirmed resolved - thanks!

@orffen orffen closed this Aug 9, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment