如何使用自定义字体我的主题在magento? [英] How can i use custom font to my theme in magento?
问题描述
我试图开发一个magento主题,我会和其他的事情一样,除了一个,我想使用自定义字体在我的magento主题根据我的客户端要求,字体是eurostilebold,我试过我做它的核心PHP,像我把字体文件夹中的字体文件夹放置的字体文件夹
I am trying to develop a magento theme, i am going well with every other thing, except one, i want to use custom font in my magento theme as per my client requirement, the font is "eurostilebold", i tried as i do it core php, like i putted the font files in font folder and placed the font folder into
D:\xampp\ htdocs\clothing_site\skin\frontend\default\gwcc\
D:\xampp\htdocs\clothing_site\skin\frontend\default\gwcc\
此目录。
现在我在我的css中使用该字体系列,并像这样调用:
this directory. Now i am using that font family in my css and calling like that :
@font-face {
font-family: 'eurostile_extended_2regular';
src: url('fonts/eurostile_extended_2-webfont.eot');
所有我想知道如何使用任何自定义下载的字体家庭在magento,任何帮助, ,提前感谢,提前感谢。
All i want to know how to use any custom downloaded font family in magento, any help would be appreciated, thanks in advance, thanks in advance.
推荐答案
@font-face {
font-family: 'Adobe Garamond Regular';
src: url('../fonts/Adobe Garamond Regular.eot');
src: url('../fonts/Adobe Garamond Regular.eot?#iefix') format('embedded-opentype'),
url('../fonts/Adobe Garamond Regular.woff') format('woff'),
url('../fonts/AGaramondPro-Regular.otf') format('otf'),
url('../fonts/Adobe Garamond Regular.ttf') format('truetype'),
url('../fonts/Adobe Garamond Regular.svg#Adobe Garamond Regular') format('svg');
font-weight: normal;
font-style: normal;
}
body{ font-family:'Adobe Garamond Regular'; } //added to code
这篇关于如何使用自定义字体我的主题在magento?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!