majodev / google-webfonts-helper

A Hassle-Free Way to Self-Host Google Fonts. Get eot, ttf, svg, woff and woff2 files + CSS snippets
https://gwfh.mranftl.com
MIT License
12.02k stars 420 forks source link

What does undefined local('') do in CSS snippets? #144

Closed ClarusDignus closed 1 year ago

ClarusDignus commented 2 years ago

Does the undefined local('') mean: use local font or ignore local font?

E.g.:

/* roboto-regular - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('roboto-v29-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('roboto-v29-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('roboto-v29-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('roboto-v29-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('roboto-v29-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('roboto-v29-latin-regular.svg#Roboto') format('svg'); /* Legacy iOS */
}
gsauthof commented 2 years ago

Duplicate of: #124

bdlowery commented 2 years ago

Duplicate of: #124

There's literally no solution to the problem in that thread.

gsauthof commented 1 year ago

There's literally no solution to the problem in that thread.

This is sad, but doesn't make it less of a duplicate. Also the other issue is still open. Having multiple issues open for the same problem doesn't necessarily help to arrive at a resolution faster. Fragmentation makes it harder to track.

majodev commented 1 year ago

v1.1.0 removes local('')