-
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.
Merge pull request #103 from Munter/fix/unusedGlyphsMultipleVariants
Inject unicode-range into all the @font-face declarations for the given family when glyphs are missing
- Loading branch information
Showing
7 changed files
with
114 additions
and
11 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
Binary file added
BIN
+37.5 KB
testdata/subsetFonts/missing-glyphs-multiple-variants/InputMono-Medium.woff2
Binary file not shown.
Binary file added
BIN
+36.4 KB
testdata/subsetFonts/missing-glyphs-multiple-variants/InputMono-Regular.woff2
Binary file not shown.
Binary file added
BIN
+20.6 KB
testdata/subsetFonts/missing-glyphs-multiple-variants/OutputSans-Bold.woff2
Binary file not shown.
Binary file added
BIN
+20 KB
testdata/subsetFonts/missing-glyphs-multiple-variants/OutputSans-Regular.woff2
Binary file not shown.
37 changes: 37 additions & 0 deletions
37
testdata/subsetFonts/missing-glyphs-multiple-variants/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,37 @@ | ||
<!doctype html> | ||
<html class="fonts-loaded"> | ||
<head> | ||
<style> | ||
@font-face { | ||
font-family: Output Sans; | ||
src: url(OutputSans-Regular.woff2) format("woff2"); | ||
} | ||
|
||
@font-face { | ||
font-family: Output Sans; | ||
src: url(OutputSans-Bold.woff2) format("woff2"); | ||
font-weight: 700; | ||
} | ||
|
||
@font-face { | ||
font-family: Input Mono; | ||
src: url(InputMono-Regular.woff2) format("woff2"); | ||
} | ||
|
||
@font-face { | ||
font-family: Input Mono; | ||
src: url(InputMono-Medium.woff2) format("woff2"); | ||
font-weight: 700; | ||
} | ||
|
||
code { | ||
font-family: Input Mono, monospace; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<pre><code>load('中国').then(<strong>function</strong></code></pre> | ||
|
||
<div style="font-family: Output Sans">Hello!</div> | ||
</body> | ||
</html> |