If you want to check for local files first do:
@font-face {
font-family: 'Green Sans Web';
src:
local('Green Web'),
local('GreenWeb-Regular'),
url('GreenWeb.ttf');
}
There is a more elaborate description of what to do here.
More Related Contents:
- Using custom fonts using CSS?
- Are eot, ttf, and svg still necessary in the font-face declaration?
- CSS @font-face not working with Firefox, but working with Chrome and IE
- Amazon S3 CORS (Cross-Origin Resource Sharing) and Firefox cross-domain font loading
- Why is @font-face throwing a 404 error on woff files?
- Wait for fonts to load before rendering web page
- Why should we include ttf, eot, woff, svg,… in a font-face
- @font-face EOT not loading over HTTPS
- @font-face anti-aliasing on windows and mac
- @font-face works in IE8 but not IE9
- CSS @font-face absolute URL from external domain: fonts not loading in firefox
- CSS @font-face – what does “src: local(‘☺’)” mean?
- Multiple font-weights, one @font-face query
- Google warning: Resource interpreted as Font but transferred with MIME type application/octet-stream
- Fallback fonts on special characters
- CSS @font-face not working in IE8
- font-face with wrong MIME type in Chrome
- Internet Explorer @font-face is failing
- Non-Standard fonts in web?
- On IE CSS font-face works only when navigating through inner links
- Using @font-face with Rails 3.1 app?
- Downloadable font on firefox: bad URI or cross-site access not allowed
- Fix custom font line-height with CSS
- Center an element in Bootstrap Navbar
- Offset a background image from the right using CSS
- How to stick a footer to bottom in css?
- pure CSS multiple stacked position sticky?
- Offsetting columns is not working (Bootstrap v4.0.0-beta)
- Filling water animation
- What is caret symbol ^ used for in css when selecting elements?