e-gadget Posted February 6, 2014 Share Posted February 6, 2014 Ciao, I'm modifying the default theme and I'm trying to do work by anyway the @font-family command. I've attempt so add font in .svg and .woff format, but always it doesn't work. This is my css: @font-face {font-family: 'Lucida Grande'; src: url('lucida-grande.eot'); src: url('lucida-grande.eot?#iefix') format('embedded-opentype'), url('lucida-grande.woff') format('woff'), url('lucida-grande.ttf') format('truetype'), url('lucida-grande.svg#webfont') format('svg');}body{ font-family: 'Lucida Grande'; font:normal 11px/14px 'Lucida Grande', Verdana, Arial, Helvetica, Sans-serif; color:#222; background:#000000;} In the web-page I see Verdana font. The font file is in the template directory. How I can resolve? Thanks! Link to comment Share on other sites More sharing options...
Krystian Podemski Posted February 6, 2014 Share Posted February 6, 2014 Hi, Probably is enough to change font directory to: src: url('../lucida-grande.eot'); /css/ second level of tree in theme folder Link to comment Share on other sites More sharing options...
e-gadget Posted February 6, 2014 Author Share Posted February 6, 2014 (edited) Thanks Krystian, it's O.K.! Your advice is right, and I've found all of the solution on a spanish blog. This is the code: @font-face {font-family: 'Lucida Grande'; src: url('../lucida-grande.otf'); src: url('../lucida-grande.eot'); src: url('../lucida-grande.eot?#iefix') format('embedded-opentype'), url('../lucida-grande.woff') format('woff'), url('../lucida-grande.ttf') format('truetype'), url('../lucida-grande.svg#webfont') format('svg');}body{ font:normal 11px/14px 'Lucida Grande', Verdana, Arial, Helvetica, Sans-serif; src: url('../lucida-grande.otf'); color:#222; Edited February 6, 2014 by e-gadget (see edit history) Link to comment Share on other sites More sharing options...
CartExpert.net Posted February 7, 2014 Share Posted February 7, 2014 Please mark the topic as [sOLVED] Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now