New Landing How can we help? Cardinal new fonts to install

Viewing 3 posts - 1 through 3 (of 3 total)
  • Posted in: Cardinal
  • #134005
    rivkmoshe
    Member
    Post count: 69

    Hi!
    i would like to know if i want to install a new web font
    or a new google font like : open sans hebrew

    how should i do that?
    would it be a problem on responsive devices?

    thanks

    #134010
    HiroiSekai
    Member
    Post count: 144

    The best way is to ensure compatibility (with most browsers) is to use the @font-face CSS rule.

    If you’re using a Google font, it makes it a lot easier as you must point the CSS to a URL to grab the font from. It looks a little something like this in your CSS:

    @font-face {
    font-family: myFont; <- This can be any name you want
    src: url(sansation_light.woff); <- paste the URL the Google font points to
    }

    Once you have done this, simply call font-family on anything you want to use that font, like:

    a {
    font-family:myFont;
    }

    This will naturally turn all of your a tags into this font.

    This tells the browser to download and display this font when a user needs it. In the case that your font is not archived on a URL, you need to download it, FTP it to your server and point to the file in the folder you placed it in.

    #134141
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    If it’s a webfont the best way is to just follow the instructions that the font provider give you. This usually consists of adding a link to the head section of your website, which means you would need to edit the header.php file.

    Once you’ve don’t that you will be able to use custom css to assign the font

    – Kyle

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register