0

I added the code line below in local.xml with link to google, but we do not want to rely on an external url.

    <action method="addLinkRel"><rel>stylesheet</rel><href>//fonts.googleapis.com/css?family=Open+Sans</href></action>

So, we installed the "Open Sans" fonts-family (10 fonts) in skin/frontend/default/(our theme)/fonts.

What are the code lines we must add in local.xml to call multiple fonts from our local theme?

1 Answer 1

0

You do not need to add font in xml

Go to your style add below code in your stylesheet

@font-face {
    font-family: Open+Sans;
    src: url(../fonts/Open+Sans.ttf);  
}
1
  • We tried that previously and it didn't work (it crashed the whole style sheet). I will try again with your solution. Thanks Prashant
    – Gael
    Dec 8, 2016 at 8:56

Your Answer

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

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