In my Rails app, I have:
/public/fonts/megalopolisextra.otf
/public/fonts/megalopolisextra.ttf
In app/stylesheets/screen.scss, I have:
@import "compass/css3";
@include font-face("Megalopolis", font-files("megalopolisextra.ttf", truetype, "megalopolisextra.otf", opentype));
.header {@font-family: "Megalopolis";}
I have also tried every other variation I could think of, like:
.header {@font-family: Megalopolis;}
Why am I getting this error in Compass?
Invalid CSS after " @font-family:": expected pseudoclass or pseudoelement, was " "Megalopolis";"
Many thanks!
Steven.