KenjiBaheux / css-font-rendering

A proposal for CSS to let web developers control the behavior of font rendering
Apache License 2.0
96 stars 10 forks source link

Add true "mandatory" #9

Closed jakearchibald closed 9 years ago

jakearchibald commented 9 years ago

If "mandatory" is renamed something more indicative of behaviour (#6), I think we need a true mandatory for icon fonts. As in:

"If this font fails to load, it's better to display nothing because a fallback would look more broken"

jakearchibald commented 9 years ago

Been thinking about this, I think this may be better done with:

.selector {
  font-family: icon-font, none;
}

…to signal that no fallback is acceptable.

KenjiBaheux commented 9 years ago

See https://github.com/KenjiBaheux/css-font-rendering/issues/6#issuecomment-62844281 for an alternative. I think we got the mandatory no timeout behavior wrong.

KenjiBaheux commented 9 years ago

Related: https://github.com/KenjiBaheux/css-font-rendering/issues/11