This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 3

Custom Fonts


  1. chrishawkins
    Member

    Hi There, I have bought (the totally legal way) some font collections that we use within the business, they are provided to my in .ttf format and I was wondering if there is any way I can include them in certain Machform Themes.

    In HTML, I have used them on our intranet by using a code in the head, such as

    <style type="text/css">
    @font-face {
    font-family: tahoma_font;
    src: local(tahoma_font), url('fonts/tahoma.ttf') format('truetype');
    }
    </style>

    and then later on calling the font, like so...

    <font color="#52247F" style='font-family: tahoma_font;'>TEXT HERE</font>

    I appreciate the demise of the FONT tag, but it is what it is. Surely there's a way to do this within a machform theme?

    These are fully licensed fonts, so they aren't available on the google fonts database as they aren't free to use (sadly!).

    Posted 10 years ago #
  2. yuniar

    It is possible by inserting the CSS code above into your theme's "Advanced CSS" section.
    Paste this code:

    @font-face {
    font-family: tahoma_font;
    src: local(tahoma_font), url('fonts/tahoma.ttf') format('truetype');
    }

    but make sure to change the font URL above with the full path.

    You can then use the font tag on your field's label.


    MachForm Founder

    Posted 10 years ago #
  3. chrishawkins
    Member

    Lovely, that works in a limited way. I don't suppose theres any way I can create a theme and have the entire theme use this font, rather than having to specify it manually for individual headings.

    Something like the current way of selecting a font from Google Fonts, but using custom ones.

    Posted 10 years ago #
  4. yuniar

    I'm afraid there is no way to do so. Sorry.


    MachForm Founder

    Posted 10 years ago #

RSS feed for this topic

Reply