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.
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
Levie, could I insert this code directly into the Application.mixin.theme file?
Thanks!