require-unicode-range-for-large-family
Require unicode-range for families with four or more @font-face blocks in one file.
Rule catalog ID: R004
Targeted pattern scopeโ
@font-facegroups sharing the samefont-family.
What this rule reportsโ
- Faces in large family groups that omit
unicode-range.
Why this rule existsโ
Range partitioning prevents unnecessary glyph downloads for large families.
โ Incorrectโ
@font-face {
font-family: "Inter";
font-weight: 400;
src: url("./inter-400.woff2") format("woff2");
}
โ Correctโ
@font-face {
font-family: "Inter";
font-weight: 400;
unicode-range: U+0000-00FF;
src: url("./inter-400.woff2") format("woff2");
}