https://gist.github.com/7cc/ddf4479066937ec0852a4ca526146563
https://jsfiddle.net/gh/gist/library/pure/ddf4479066937ec0852a4ca526146563
Last active
April 8, 2019 04:47
-
-
Save 7cc/ddf4479066937ec0852a4ca526146563 to your computer and use it in GitHub Desktop.
embed test
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
body { | |
font-size: 50px; | |
} | |
@font-face { | |
font-family: "myfont"; | |
font-weight: bold; | |
src: local("Inconsolata Bold"), | |
local("Inconsolata-Bold"), | |
local("Inconsolata"); | |
/* [!] chrome loads Inconsolata-Regular */ | |
} | |
.div1 { | |
font-family: myfont; | |
font-weight: bold; | |
} | |
.div2 { | |
font-family: Inconsolata; | |
font-weight: bold; | |
} |
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
<div class="div1">0</div> | |
<div class="div2">0</div> |
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
name: "@font-face src: local()" | |
description: Chrome can't load local font face name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment