[SOLVED] Use different fonts

Answered Closed
0
0

Hi!

How can I add a TTF file to my project and use a different font that can be viewed correctly on Windows, Linux and Mac?

May you help me, please?

Thanks,
Ulisses.

  • You must to post comments
Best Answer
1
0

Hi Ulisses,

There are a few ways to add a new font.

You can add it directly to the theme code under the “font” section, something like this:

"font":
{
    "size": 18,
    "family": ["dancing", "courier new"],
    "bold": false,
    "italic": false,
    "sources": [
    {
        "family": "Dancing",
        "source": [
          "http://fonts.gstatic.com/s/dancingscript/v7/DK0eTGXiZjN6yA8zAEyM2WrfpCc_r9-5ZnZPBmoO4Sk.eot",
          "http://fonts.gstatic.com/s/dancingscript/v7/DK0eTGXiZjN6yA8zAEyM2Ud0sm1ffa_JvZxsF_BEwQk.woff2"
        ]
    }]
}

Alternatively,

You can add the fonts through the ThemeBuilder in Wisej.  I’ve attached some screenshots showing the process.

Please also check out the Wisej documentation on ThemeFonts for more details: https://wisej.com/docs/2.0/html/ThemeFonts.htm

 

Let me know if you have any other questions!

Best,

Levie

  • Ulisses
    Thanks, Levie! Could I insert this code directly into the Application.mixin.theme file?
  • Ulisses
    I ask this because the font did not appear in the dialog box.
  • You must to post comments
0
0

Levie, could I insert this code directly into the Application.mixin.theme file?

Thanks!

  • You must to post comments
Showing 2 results