I use SASS to create @ font-face mixing, but this:
=remotefont(!name, !url)
@font-face
font-family = !name
src = url(!url + ".eot")
src = local(!name), url(!url + ".ttf") format("truetype")
+remotefont("My font", "/myfont.ttf")
becomes the following:
@font-face {
font-family: My font;
src: url(/myfont.ttf.eot);
src: local(My font), url(/myfont.ttf.ttf) format(truetype); }
No matter how hard I try, I cannot quote it โMy fontโ (with โ! Nameโ) or โtruetypeโ (it removes quotes). Any ideas on how I can do this?
source
share