Skip to content

Instantly share code, notes, and snippets.

@7cc
Last active April 8, 2019 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 7cc/ddf4479066937ec0852a4ca526146563 to your computer and use it in GitHub Desktop.
Save 7cc/ddf4479066937ec0852a4ca526146563 to your computer and use it in GitHub Desktop.
embed test
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;
}
<div class="div1">0</div>
<div class="div2">0</div>
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