i am new in magento and i want to change my magento base font.

i found this code:

@font-face {   font-family: 'MyWebFont';   src: url('BYekan.eot'); /* IE9 Compat Modes */   src: url('BYekan.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('BYekan.woff') format('woff'), /* Modern Browsers */
       url('BYekan.ttf')  format('truetype'), /* Safari, Android, iOS */
       url('BYekan.svg#svgFontName') format('svg'); /* Legacy iOS */ }

and i have this font files:


where should i copy that code? and where should i upload font files?

2 Answers 2


i found answer here: Custom typography in Magento – @font-face



I found the absolute easiest way is to go to System->Configuration

There from the General group go to Design and on the HTML Head section use the Misc Scripts to paste something like this:

<link href='https://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
<style> body {font-family: 'Raleway', sans-serif !Important;}</style>

Where the link is for the desired google font (why would you need any other?)


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.