Skip to content
This repository has been archived by the owner on Jan 17, 2021. It is now read-only.

Add local sources #59

Open
tracker1 opened this issue Aug 8, 2018 · 0 comments
Open

Add local sources #59

tracker1 opened this issue Aug 8, 2018 · 0 comments

Comments

@tracker1
Copy link

tracker1 commented Aug 8, 2018

Prefix local variants of fonts...

  src: local('Roboto),
       local('Roboto Regular'),
       local('Roboto-Regular'),
       url('....'),
       ...

Example from inconsolata-fontface as a reference...

@font-face {
  font-family: 'Inconsolata';
  font-display: auto;
  src: local('Inconsolata'),
       local('Inconsolata Bold'),
       local('Inconsolata-Bold'),
       url('fonts/Inconsolata-Bold.woff2') format('woff2'),
       url('fonts/Inconsolata-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant