-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect unused wdth variation axis ranges
- Loading branch information
1 parent
87e848e
commit d7758eb
Showing
5 changed files
with
115 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+1.58 MB
...s/RobotoFlex-VariableFont_GRAD,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf
Binary file not shown.
38 changes: 38 additions & 0 deletions
38
testdata/subsetFonts/variable-font-unused-wdth-axis/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<html> | ||
<head> | ||
<meta charset=utf-8> | ||
<style> | ||
@font-face { | ||
font-family: RobotoFlex; | ||
src: url('RobotoFlex-VariableFont_GRAD,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf') format('woff2-variations'); | ||
font-stretch: condensed 125; | ||
} | ||
|
||
p { | ||
font-size: 100px; | ||
font-family: RobotoFlex, sans-serif; | ||
} | ||
|
||
/* This one will exercise wdth 87.5 as it's in-range according to the @font-face */ | ||
.first { | ||
font-stretch: semi-condensed; | ||
} | ||
|
||
/* This one will be rendered as faux stretch based on the highest font-stretch available according to the @font-face */ | ||
.second { | ||
font-stretch: 200; | ||
} | ||
|
||
/* This one will exercise wdth 147 despite it being out of the font-stretch range of the @font-face */ | ||
.third { | ||
font-stretch: 100; | ||
font-variation-settings: "wdth" 147; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<p class="first">Hello</p> | ||
<p class="second">there</p> | ||
<p class="third">world!</p> | ||
</body> | ||
</html> |