extending @font-face declaration from external css file -
I am using a web-font that has been declared with @ font-face in the external CSS file. The font service is set up in such a way that I make the external CSS file source and then just use the font in my CSS. I can not source the font file in my own @ font-face definition
Every time I use webfonts on my site, I add the same two style definitions. Therefore, my font usage always looks something like this:
h2 {font-family: 'Knockout 26A'; -webkit-font-smoothing: antialiage; -Moz-OSX-font-smoothing: grayscale; }
Each time I use fonts, I am unnecessarily feeling redundant if I use fonts; I want to have an @ font-face announcement from external files in my own CSS Is there any way to expand?
Thank you!
It is not possible to extend a @font-face
declaration @ Font-face
according to font-family
and src
descriptor is required or the declaration is invalid
so you can either webkit-font-smoothing
or moz-osx-font-smoothing
by the way Will not even be able to use
I recommend using a CSS preprocessor to cut or cut on the terminology of CSS. But if you can not use them, you will have to write your CSS announcements at present.
Comments
Post a Comment