CSS @font-face – what does “src: local(‘☺’)” mean?

if you read the notes in font-squirrel’s font-face generator, you’ll see that it was a gotcha by paul irish. Here is the excerpt from his blog post: And.. regarding @font-face syntax I now recommend the bulletproof smiley variation over the original bulletproof syntax. @font-face { font-family: ‘Graublau Web’; src: url(‘GraublauWeb.eot’); src: local(‘☺’), url(‘GraublauWeb.woff’) format(‘woff’), url(‘GraublauWeb.ttf’) … Read more

Using .otf fonts on web browsers

You can implement your OTF font using @font-face like: @font-face { font-family: GraublauWeb; src: url(“path/GraublauWeb.otf”) format(“opentype”); } @font-face { font-family: GraublauWeb; font-weight: bold; src: url(“path/GraublauWebBold.otf”) format(“opentype”); } // Edit: OTF now works in most browsers, see comments However if you want to support a wide variety of browsers i would recommend you to switch to … Read more

@font-face anti-aliasing on windows and mac

I too have been plagued with this on Chrome and I think I’ve just found the answer! Chrome didn’t like the default fontsquirrel.com generated CSS. @font-face { font-family: ‘HLC’; src: url(‘/_styles/hlc/hl-webfont.eot’); src: url(‘/_styles/hlc/hl-webfont.eot?#iefix’) format(’embedded-opentype’), url(‘/_styles/hlc/hl-webfont.woff’) format(‘woff’), url(‘/_styles/hlc/hl-webfont.ttf’) format(‘truetype’), url(‘/_styles/hlc/hl-webfont.svg#HLC’) format(‘svg’); font-weight: normal; font-style: normal; } To fix, i moved the SVG line: url(‘/_styles/hlc/hl-webfont.svg#HLC’) format(‘svg’) to … Read more

What is the status of TTF support in Internet Explorer?

So as I mentioned in my question above, Internet Explorer has some ttf support starting with version 9, but “only working when [fonts are] set to be installable”. Some background: …TrueType fonts have embedding “bits” which allow the creator of the font to decide the level of embedding that will be permitted. There are four … Read more