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
title:"Regular instance coordinates are correct?",
56
-
rationale:"According to the Open-Type spec's registered design-variation tags, the Regular instance in a variable font should have certain prescribed values.
57
-
If a variable font has a 'wght' (Weight) axis, then the coordinate of its 'Regular' instance is required to be 400.
58
-
If a variable font has a 'wdth' (Width) axis, then the coordinate of its 'Regular' instance is required to be 100.
63
+
#[check(
64
+
id = "com.google.fonts/check/fvar/axis_ranges_correct",
65
+
title = "Axes and named instances fall within correct ranges?",
66
+
rationale = "According to the Open-Type spec's registered design-variation tags, instances in a variable font should have certain prescribed values.
67
+
If a variable font has a 'wght' (Weight) axis, the valid coordinate range is 1-1000.
68
+
If a variable font has a 'wdth' (Width) axis, the valid numeric range is strictly greater than zero.
59
69
If a variable font has a 'slnt' (Slant) axis, then the coordinate of its 'Regular' instance is required to be 0.
60
70
If a variable font has a 'ital' (Slant) axis, then the coordinate of its 'Regular' instance is required to be 0.",
use fontspector_checkapi::{prelude::*, testfont,FileTypeConvert};
2
2
use read_fonts::TableProvider;
3
3
4
+
#[check(
5
+
id = "com.google.fonts/check/maxadvancewidth",
6
+
title = "MaxAdvanceWidth is consistent with values in the Hmtx and Hhea tables?",
7
+
rationale = "The 'hhea' table contains a field which specifies the maximum advance width. This value should be consistent with the maximum advance width of all glyphs specified in the 'hmtx' table.",
title:"MaxAdvanceWidth is consistent with values in the Hmtx and Hhea tables?",
31
-
rationale:"The 'hhea' table contains a field which specifies the maximum advance width. This value should be consistent with the maximum advance width of all glyphs specified in the 'hmtx' table.",
0 commit comments