Using @font-face src: local with fonts.com web fonts

queuessovek

New Member
As discussed here, the affordable fonts.com web fonts plans don't allow fonts to be directly embedded via \[code\]@font-family\[/code\], or so it would seem...I'm wondering if this would work:\[code\]@font-face { font-family: 'Main'; src: local('FoobarBk'), local('FoobarBk Regular'); font-weight: normal; font-style: normal;}@font-face { font-family: 'Main'; src: local('FoobarMd'), local('FoobarMd Regular'); font-weight: bold; font-style: normal;}@font-face { font-family: 'Main'; src: local('FoobarIt'), local('FoobarIt Regular'); font-weight: normal; font-style: italic;}@font-face { font-family: 'Main'; src: local('FoobarMdIt'), local('FoobarMdIt Regular'); font-weight: normal; font-style: normal;}\[/code\]The idea is that once the fonts.com supplied script has finished loading the FoobarBk, FoobarMd, FoobarIt and FoobarMdIt fonts, they would be available as local fonts (without an additional page load) and any CSS styles specifying \[code\]Main\[/code\] as the \[code\]font-family\[/code\] would instantly make use of them.I suspect this is just wishful thinking, but I'd prefer someone to chime in with an answer one way or the other.
 
Back
Top