-
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 #102 from Munter/fix/noPreloadUnusedVariants
Do not preload unused variants in a self-hosting scenario
- Loading branch information
Showing
6 changed files
with
70 additions
and
9 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
9 changes: 9 additions & 0 deletions
9
testdata/subsetFonts/unused-variant-preload-google/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,9 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Noto+Serif:400,700,400i|Open+Sans:700,400"> | ||
</head> | ||
<body> | ||
<div style="font-family: Noto Serif">Hello</div> | ||
</body> | ||
</html> |
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,9 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<!doctype html> | ||
<html class="fonts-loaded"> | ||
<head> | ||
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Noto+Serif:400,700,400i|Open+Sans:700,400"> | ||
<style> | ||
@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> | ||
<div style="font-family: Noto Serif">Hello</div> | ||
<code>foo</code> | ||
</body> | ||
</html> |