Font weight limited with a variable font
I'm having an issue with one specific variable font RobotoFlex. The font weight range available to me in Firefox and within Gnome shell, for example seems to be limited to only Regular and Medium weights. Even if I choose Bold (in Gnome Tweaks or manually set websites display RobotoFlex using the Inspector tool and change the weight to Bold) it displays as Medium.
I had filed an issue with the font developer, but I was told that it might be a fontconfig issue.
Please let me know what other details you want me to provide.
$ FC_DEBUG=256 fc-query RobotoFlex\[GRAD,XOPQ,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght\].ttf
FC_DEBUG=256
found family (n 1 p 3 e 1 l 0x0409)RobotoFlex
found full (n 4 p 3 e 1 l 0x0409)RobotoFlex Regular
found style (n 2 p 3 e 1 l 0x0409) Regular
os2 weight class 400 multiplier 1 maps to weight 80
os2 width class 5 multiplier 1 maps to width 100
complex_ features in this font: otlayout:DFLT
Style Regular maps to slant -1
Style Regular maps to decorative 0
aa(0) ab(14) af(0)
ak(5) { 0186 0190 0254 025b 0329 }
am(264) an(0) ar(36) as(64)
ast(4) { 1e24 1e25 1e36 1e37 }
av(0) ay(0)
az-az(1) { 0131 }
az-ir(40) ba(0) be(0) ber-dz(14) ber-ma(32) bg(0) bh(68) bho(68) bi(0) bin(0)
bm(6) { 0186 0190 019d 0254 025b 0272 }
bn(63) bo(95) br(0) brx(82) bs(0) bua(0) byn(255) ca(0) ce(0) ch(0)
chm(4) { 04a4 04a5 04f8 04f9 }
chr(85) co(0)
crh(1) { 0131 }
cs(0) csb(0) cu(27) cv(0) cy(0) da(0) de(0) doi(85) dv(49) dz(95) ee(19) el(0) en(0) eo(0) es(0) et(0) eu(0) fa(40)
fat(5) { 0186 0190 0254 025b 0329 }
ff(8) { 0181 018a 019d 01b3 01b4 0253 0257 0272 }
fi(0) fil(0) fj(0) fo(0) fr(0) fur(0) fy(0) ga(14) gd(0) gez(218) gl(0) gn(0) gu(68) gv(0)
ha(8) { 0181 018a 0198 0199 01b3 01b4 0253 0257 }
haw(1) { 02bb }
he(27) hi(68) hne(68) ho(0) hr(0) hsb(0) ht(0) hu(0) hy(77)
hz(5) { 032f 1e12 1e13 1e4a 1e4b }
ia(0) id(0) ie(0) ig(0) ii(1165) ik(0) io(0) is(0) it(0) iu(161) ja(2314) jv(0) ka(33) kaa(0) kab(14) ki(0) kj(0) kk(0) kl(0) km(63) kn(70) ko(2442) kok(68)
kr(4) { 018e 01dd 024c 024d }
ks(33)
ku-am(4) { 051a 051b 051c 051d }
ku-iq(32) ku-ir(32) ku-tr(0) kum(0) kv(0) kw(0) kwm(0) ky(0) la(0) lah(27) lb(0) lez(0) lg(0) li(0)
ln(4) { 0186 0190 0254 025b }
lo(55) lt(0) lv(0) mai(68) mg(0) mh(0)
mi(2) { 1e34 1e35 }
mk(2) { 0400 0450 }
ml(68) mn-cn(130) mn-mn(0) mni(76) mo(0) mr(68) ms(0) mt(0) my(48) na(0) nb(0) nds(0) ne(72) ng(0) nl(0) nn(0) no(0) nqo(59) nr(0) nso(0) nv(0) ny(0) oc(0) om(0) or(68) os(0) ota(37) pa(63) pa-pk(27) pap-an(0) pap-aw(0) pl(0) ps-af(49) ps-pk(49) pt(0)
qu(1) { 02c8 }
quz(1) { 02c8 }
rm(0) rn(0) ro(0) ru(0) rw(0) sa(68)
sah(4) { 0494 0495 04a4 04a5 }
sat(70) sc(0)
sco(4) { 01b7 021c 021d 0292 }
sd(54) se(0) sel(0) sg(0) sh(0)
shs(1) { 0313 }
si(73) sid(281) sk(0) sl(0)
sm(1) { 02bb }
sma(0) smj(0) smn(0)
sms(8) { 01b7 01e4 01e5 01e8 01e9 01ee 01ef 0292 }
sn(0) so(0) sq(0) sr(0) ss(0) st(0) su(0) sv(0) sw(0) syr(45) ta(48) te(70)
tg(2) { 04e2 04e3 }
th(74) ti-er(255) ti-et(281) tig(221) tk(0) tl(0) tn(0)
to(1) { 02bb }
tr(1) { 0131 }
ts(0) tt(0)
tw(5) { 0186 0190 0254 025b 0329 }
ty(0) tyv(0) ug(33) uk(0) und-zmth(300) und-zsye(641) ur(27) uz(0) ve(10) vi(0) vo(0) vot(0) wa(0) wal(281) wen(0) wo(0) xh(0) yap(0) yi(27) yo(14) za(0) zh-cn(6763) zh-hk(1083) zh-mo(1083) zh-sg(6763) zh-tw(13063) zu(0)
found family (n 1 p 3 e 1 l 0x0409)RobotoFlex
os2 weight class 400 multiplier 1 maps to weight 80
os2 width class 5 multiplier 1 maps to width 100
complex_ features in this font: otlayout:DFLT
Pattern has 27 elts (size 32)
family: "RobotoFlex"(s)
familylang: "en"(s)
style: "Regular"(s)
stylelang: "en"(s)
fullname: "RobotoFlex Regular"(s)
fullnamelang: "en"(s)
slant: 0(i)(s)
weight: 80(f)(s)
width: 100(f)(s)
size: 14(f)(s)
foundry: "GOOG"(s)
file: "RobotoFlex[GRAD,XOPQ,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght].ttf"(s)
index: 0(i)(s)
outline: True(s)
scalable: True(s)
charset:
0000: 00000000 ffffffff ffffffff 7fffffff 00000000 ffffffff ffffffff ffffffff
0001: ffffffff fffdffff ffffffff 7fffffff 00048000 00018003 00001ff0 fc000cc0
0002: 0fffffff 000f3c00 02000000 00000000 00000000 16000000 3f0002c0 00000000
0003: 08029fdf 000241d8 00000000 40300000 ffffd7f0 fffffffb 0080ffff 00000000
0004: fffffffe ffffffff fffeffff 00000000 3fcf0000 0fcffc0f 33cf8007 c00fc3c0
001e: 00000000 00000000 00000000 00000000 4000003f ffffffff ffffffff 03ffffff
0020: 77390000 060d0047 00040010 00100000 00000000 37363ada 00000000 00000000
0021: 00400000 00000044 00000000 00000000 00000000 00000000 00000000 00000000
0022: 02240040 00000000 00000100 00000031 00000000 00000000 00000000 00000000
0027: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000300
00f5: 0f03c000 0000333c 00000000 00000000 00000000 00000000 00000000 00000000
00fb: 0000001f 00000000 00000000 00000000 00000000 00000000 00000000 00000000
(s)
lang: aa|af|av|ay|ba|be|bg|bi|bin|br|bs|bua|ca|ce|ch|co|cs|cv|cy|da|de|el|en|eo|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gn|gv|ho|hr|hu|ia|ig|id|ie|ik|io|is|it|kaa|ki|kk|kl|kum|kv|kw|ky|la|lb|lez|lt|lv|mg|mh|mo|mt|nb|nds|nl|nn|no|nr|nso|ny|oc|om|os|pl|pt|rm|ro|ru|se|sel|sh|sk|sl|sma|smj|smn|so|sq|sr|ss|st|sv|sw|tk|tl|tn|ts|tt|tyv|uk|uz|vi|vo|vot|wa|wen|wo|xh|yap|zu|an|csb|fil|hsb|ht|jv|kj|ku-tr|kwm|lg|li|mn-mn|ms|na|ng|nv|pap-an|pap-aw|rn|rw|sc|sg|sn|su|ty|za(s)
fontversion: 139985(i)(s)
capability: "otlayout:DFLT"(s)
fontformat: "TrueType"(s)
decorative: False(s)
postscriptname: "RobotoFlex-Regular"(s)
color: False(s)
symbol: False(s)
variable: False(s)
fonthashint: False(s)
order: 0(i)(s)
Pattern has 22 elts (size 32)
family: "RobotoFlex"(s)
familylang: "en"(s)
slant: 0(i)(s)
weight: [0 215](s)
width: [25 151](s)
size: [8 144](s)
foundry: "GOOG"(s)
file: "RobotoFlex[GRAD,XOPQ,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght].ttf"(s)
index: 0(i)(s)
outline: True(s)
scalable: True(s)
charset:
0000: 00000000 ffffffff ffffffff 7fffffff 00000000 ffffffff ffffffff ffffffff
0001: ffffffff fffdffff ffffffff 7fffffff 00048000 00018003 00001ff0 fc000cc0
0002: 0fffffff 000f3c00 02000000 00000000 00000000 16000000 3f0002c0 00000000
0003: 08029fdf 000241d8 00000000 40300000 ffffd7f0 fffffffb 0080ffff 00000000
0004: fffffffe ffffffff fffeffff 00000000 3fcf0000 0fcffc0f 33cf8007 c00fc3c0
001e: 00000000 00000000 00000000 00000000 4000003f ffffffff ffffffff 03ffffff
0020: 77390000 060d0047 00040010 00100000 00000000 37363ada 00000000 00000000
0021: 00400000 00000044 00000000 00000000 00000000 00000000 00000000 00000000
0022: 02240040 00000000 00000100 00000031 00000000 00000000 00000000 00000000
0027: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000300
00f5: 0f03c000 0000333c 00000000 00000000 00000000 00000000 00000000 00000000
00fb: 0000001f 00000000 00000000 00000000 00000000 00000000 00000000 00000000
(s)
lang: aa|af|av|ay|ba|be|bg|bi|bin|br|bs|bua|ca|ce|ch|co|cs|cv|cy|da|de|el|en|eo|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gn|gv|ho|hr|hu|ia|ig|id|ie|ik|io|is|it|kaa|ki|kk|kl|kum|kv|kw|ky|la|lb|lez|lt|lv|mg|mh|mo|mt|nb|nds|nl|nn|no|nr|nso|ny|oc|om|os|pl|pt|rm|ro|ru|se|sel|sh|sk|sl|sma|smj|smn|so|sq|sr|ss|st|sv|sw|tk|tl|tn|ts|tt|tyv|uk|uz|vi|vo|vot|wa|wen|wo|xh|yap|zu|an|csb|fil|hsb|ht|jv|kj|ku-tr|kwm|lg|li|mn-mn|ms|na|ng|nv|pap-an|pap-aw|rn|rw|sc|sg|sn|su|ty|za(s)
fontversion: 139985(i)(s)
capability: "otlayout:DFLT"(s)
fontformat: "TrueType"(s)
decorative: False(s)
color: False(s)
symbol: False(s)
variable: True(s)
fonthashint: False(s)
order: 0(i)(s)