Duplicate styles in variable font
I have a variable font SourceHanSansCN-VF-2.otf install in Mac OS, I got response as fellows with fc-list (V2.14.2):
~> fc-list -b : file postscriptname family style weight | grep "SourceHanSansCN-VF" -A 1 -B 4
Pattern has 5 elts (size 16)
family: "Source Han Sans CN VF"(s) "思源黑体 CN VF"(s)
style: "Normal"(s)
weight: 55(f)(s)
file: "/Users/maojj/Library/Fonts/SourceHanSansCN-VF-2.otf"(s)
postscriptname: "SourceHanSansCNVF_350wght"(s)
--
Pattern has 5 elts (size 16)
family: "Source Han Sans CN VF"(s) "思源黑体 CN VF"(s)
style: "Heavy"(s)
weight: 210(f)(s)
file: "/Users/maojj/Library/Fonts/SourceHanSansCN-VF-2.otf"(s)
postscriptname: "SourceHanSansCNVF_900wght"(s)
--
Pattern has 5 elts (size 16)
family: "Source Han Sans CN VF"(s) "思源黑体 CN VF"(s)
style: "Light"(s)
weight: 50(f)(s)
file: "/Users/maojj/Library/Fonts/SourceHanSansCN-VF-2.otf"(s)
postscriptname: "SourceHanSansCNVF_300wght"(s)
--
Pattern has 5 elts (size 16)
family: "Source Han Sans CN VF"(s) "思源黑体 CN VF"(s)
style: "Regular"(s)
weight: 45(f)(s)
file: "/Users/maojj/Library/Fonts/SourceHanSansCN-VF-2.otf"(s)
postscriptname: "SourceHanSansCN-Variable"(s)
--
Pattern has 5 elts (size 16)
family: "Source Han Sans CN VF"(s) "思源黑体 CN VF"(s)
style: "Medium"(s)
weight: 100(f)(s)
file: "/Users/maojj/Library/Fonts/SourceHanSansCN-VF-2.otf"(s)
postscriptname: "SourceHanSansCNVF_500wght"(s)
--
Pattern has 3 elts (size 16)
family: "Source Han Sans CN VF"(s) "思源黑体 CN VF"(s)
weight: [45 210](s)
file: "/Users/maojj/Library/Fonts/SourceHanSansCN-VF-2.otf"(s)
--
Pattern has 5 elts (size 16)
family: "Source Han Sans CN VF"(s) "思源黑体 CN VF"(s)
style: "Regular"(s)
weight: 80(f)(s)
file: "/Users/maojj/Library/Fonts/SourceHanSansCN-VF-2.otf"(s)
postscriptname: "SourceHanSansCNVF_400wght"(s)
--
Pattern has 5 elts (size 16)
family: "Source Han Sans CN VF"(s) "思源黑体 CN VF"(s)
style: "Bold"(s)
weight: 200(f)(s)
file: "/Users/maojj/Library/Fonts/SourceHanSansCN-VF-2.otf"(s)
postscriptname: "SourceHanSansCNVF_700wght"(s)
From the response, we can find there are two "Regular" style with different weight, and postscriptname with different format ("SourceHanSansCN-Variable" vs "SourceHanSansCNVF_400wght" )
Pattern has 5 elts (size 16)
family: "Source Han Sans CN VF"(s) "思源黑体 CN VF"(s)
style: "Regular"(s)
weight: 45(f)(s)
file: "/Users/maojj/Library/Fonts/SourceHanSansCN-VF-2.otf"(s)
postscriptname: "SourceHanSansCN-Variable"(s)
Pattern has 5 elts (size 16)
family: "Source Han Sans CN VF"(s) "思源黑体 CN VF"(s)
style: "Regular"(s)
weight: 80(f)(s)
file: "/Users/maojj/Library/Fonts/SourceHanSansCN-VF-2.otf"(s)
postscriptname: "SourceHanSansCNVF_400wght"(s)
And I get Font Variations table from https://opentype.js.org/font-inspector.html :
axes:
{"tag":"wght","minValue":250,"defaultValue":250,"maxValue":900,"name":{"en":"Weight"}}
instances:
{"name":{"en":"ExtraLight"},"coordinates":{"wght":250}}
{"name":{"en":"Light"},"coordinates":{"wght":300}}
{"name":{"en":"Normal"},"coordinates":{"wght":350}}
{"name":{"en":"Regular"},"coordinates":{"wght":400}}
{"name":{"en":"Medium"},"coordinates":{"wght":500}}
{"name":{"en":"Bold"},"coordinates":{"wght":700}}
{"name":{"en":"Heavy"},"coordinates":{"wght":900}}
So maybe one "Regular" style should be "Normal" (wght 350)? Is is a bug of fc-list ?