Problem with values of usWeightClass in VF font

Hi guys,

Problem with values of usWeightClass in VF font.

My Masters settings (Bold weight is 700):

This Exports setting (Weight 101):

gives useWeightClass=400:

while this export setting (Weight 100):

gives useWeightClass=100:

and changes name table to this:

How to handle this? Is this a bug?

Best,
Michał

Why is the style name different. Are you loking at the right font?

This is the problem.

This is the same font, but name table is also changed and it looks like this. I tested it on two-axis font and on this test file and results are the same.

I think I know what is going on. If you have a static instance at the position of the origin master, it uses it to set up the name and OS/2 table. But if you move the instance, it will use “default” values for those places.

I have created a copy to show how it differs in FontTableViewer. Test Thin is with Instance Weight=100 and Test2 Regular is weight=101. The only difference.

This is exactly what I just said.
Having no static instance at the position of the origin master, is the same as if you have a “Regular” instance at that spot. In Test2, add an instance and set the coordinate to 100.

VFs do not take the (static) usWeightClass setting, but from the Axis Location parameters of the masters and instances.

I grant you that this should be better marked in Font Info (things that are ‘static only’ and ‘variable only’).