Questions tagged [woff]

a cross-browser, web-only font format that uses gzip compression. IE9+, FF3.6+, Chrome 5+

146 questions
567
votes
18 answers

Mime type for WOFF fonts?

What mime type should WOFF fonts be served as? I am serving truetype (ttf) fonts as font/truetype and opentype (otf) as font/opentype, but I cannot find the correct format for WOFF fonts. I have tried font/woff, font/webopen, and font/webopentype,…
Nico Burns
  • 15,663
  • 9
  • 36
  • 51
424
votes
14 answers

Why is @font-face throwing a 404 error on woff files?

I'm using @font-face on my company's site and it works/looks great. Except Firefox and Chrome will throw a 404 error on the .woff file. IE does not throw the error. I have the fonts located at the root but I've tried with the fonts in the css folder…
dcp3450
  • 10,091
  • 20
  • 52
  • 96
292
votes
4 answers

Proper MIME type for .woff2 fonts

Today I updated Font Awesome package to 4.3.0 and noticed that woff2 font was added. That file is linked in CSS so I need to configure nginx to serve woff2 files properly. Currently I have this block in nginx config for fonts: location ~*…
Limon Monte
  • 44,025
  • 43
  • 163
  • 189
111
votes
2 answers

How do I use .woff fonts for my website?

Where do you place fonts so that CSS can access them? I am using non-standard fonts for the browser in a .woff file. Let's say its 'awesome-font' stored in a file 'awesome-font.woff'.
Don P
  • 49,839
  • 95
  • 259
  • 394
59
votes
3 answers

Are eot, ttf, and svg still necessary in the font-face declaration?

Up until now, I've used Paul Irish's bulletproof font-face syntax But I was just looking at support for .woff and .woff2 files on caniuse and it says woff is supported in IE9+. Most articles on this topic are from around 2009, which at the time of…
paulcpederson
  • 1,157
  • 1
  • 7
  • 13
46
votes
6 answers

Correct Apache AddType directives for font MIME types

I’m using @font-face for embedded fonts (thanks Paul Irish). In trying to fix Chrome’s warning about wrong MIME type for woff fonts, I’ve discovered a mass of conflicting suggestions. Everyone seems to agree that .eot fonts (for IE 6-8?) should be…
ChrisV
  • 7,478
  • 3
  • 43
  • 37
40
votes
7 answers

How to convert WOFF to TTF/OTF via command line?

I know about services like Online Font Converter, but I am interested in offline solution, preferably over command line. Does anyone know a tool or workflow how to convert WOFF to OTF/TTF offline?
Jonas Lekevicius
  • 691
  • 1
  • 6
  • 9
29
votes
2 answers

How to edit .woff font files offered by Google Webfonts?

Is there any free or cheap editor for Windows, that would allow to edit files with .woff extension (I checked in css that the font file has woff extension). These are fonts offered by Google Webfonts and they are free to embed, modify etc. I'd like…
camcam
  • 2,265
  • 7
  • 40
  • 58
28
votes
1 answer

How do I leverage browser caching of .woff fonts?

In PageSpeed Insights I keep seeing the message to leverage browser caching of a particular iconset/font I'm using: iconFont.woff (2 days) I've set my .htaccess as so: ## EXPIRES CACHING ## ExpiresActive On ExpiresByType…
C-M
  • 365
  • 1
  • 5
  • 13
26
votes
1 answer

Font files 404 on Azure Websites, seemingly correct MIME

I get WOFF and WOFF2 fonts to work on my IIS Manager 6 localhost, but they give a 404 when I host the site on Azure Websites. I think I have the correct MIME type in Web.config (tried with and without dots). I see the files when I connect by FTP. I…
camelBase
  • 917
  • 1
  • 8
  • 16
23
votes
4 answers

WOFF2 conversion from standard WOFF

I've seen that some Google Webfonts now use WOFF 2.0. Can I somehow convert my existing WOFF-fonts to this new (and supposedly better format)? And how?
Morten Hjort
  • 922
  • 2
  • 13
  • 27
21
votes
1 answer

How can I only use Latin subset with Google Fonts WOFF2 files?

I wanted to add a font with Google Fonts, and I have noticed an odd behavior. I want to add a font with only the latin subset, I do not want latin-ext, cyrillic or cyrillic-ext subset, in order to lighten the code. I understand that's the default…
webdif
  • 4,721
  • 2
  • 12
  • 12
19
votes
1 answer

MIME Types for woff, ttf, svg, and eot 404ing despite being setup in IIS

I am trying to get a font to render within a file and it is giving me the usual error of Resource interpreted as Font but transferred with MIME type text/html: But the HTML file on show is our 404.aspx file, I tried the usual of installing the…
user3740400
  • 261
  • 1
  • 2
  • 10
17
votes
2 answers

How to expose and serve WOFF file from Azure without web.config?

I'm serving a static site (really Angular but all the bundles are static as well as the index-html) in Azure. It works as supposed to except a single thing. For some reason the WOFF files aren't being exposed properly. The solution for it as far my…
Konrad Viltersten
  • 28,018
  • 52
  • 196
  • 347
16
votes
3 answers

Converting TTF to WOFF

I have been trying to convert TTF to WOFF using various command line and online tools. I have tried following : Command line : sfntwoff : https://people-mozilla.org/~jkew/woff/ ttf2woff : http://wizard.ae.krakow.pl/~jb/ttf2woff/ ruby gem :…
Umang Gupta
  • 9,646
  • 5
  • 33
  • 56
1
2 3
9 10