You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FontVariation's variation coordinate "weight" displays default value of 100, while the actual value used for that axis is 400.
If set manually to 100 or 400, the displayed value resets to 100 displayed, and 400 actually used. If set to other values, like 101, 399, or 401, the displayed value persists and is used correctly for the font. This makes it impossible to set font weight to exactly 100.
The same is true for other axes, for example, "width" displays default value 62, but actually uses 100.
Steps to reproduce
Create or select a FontVariation resource. Make sure "Base Font" is set to a variable font.
In the Inspector, click to open "Variation" roll-out.
Click on "OpenType - Variation Coordinates" right side to access variation axes / coordinates list.
Observe default value of 100 for "Weight".
Optionally, use the font somewhere, and observe the actual used weight of 400 (regular).
Change "Weight" value to 400.
Click on "Variation Coordinates" two times to close and re-open the list of variation axes.
Observe that "Weight" value changed to default 100 after re-opening the list, but Variation Coordinates are marked as changed.
Optionally, use the font somewhere, and observe the actual used weight of 400 (regular).
Change "Weight" value to anything other than 100 or 400, for example: 101, 399, 401, 700, 900.
Close and re-open the list, and observe that the changed value is NOT reset to the default 100.
Optionally, use the font somewhere, and observe that the actual used weight is consistent with the inspector's setting.
Tested versions
System information
Godot v4.3.beta2 - Windows 10.0.19045 - GLES3 (Compatibility) - NVIDIA GeForce GTX 1660 (NVIDIA; 31.0.15.3623) - Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz (4 Threads)
Issue description
FontVariation's variation coordinate "weight" displays default value of 100, while the actual value used for that axis is 400.
If set manually to 100 or 400, the displayed value resets to 100 displayed, and 400 actually used. If set to other values, like 101, 399, or 401, the displayed value persists and is used correctly for the font. This makes it impossible to set font weight to exactly 100.
The same is true for other axes, for example, "width" displays default value 62, but actually uses 100.
Steps to reproduce
Minimal reproduction project (MRP)
FontVariationBug.zip
The text was updated successfully, but these errors were encountered: