Defining defualt font in custom stylesheet

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
2 posts • Page 1 of 1
kfyraj
Posts:6
Joined: Mon Sep 10, 2018 12:57 pm

Defining defualt font in custom stylesheet

Post by kfyraj »

Hi,

I am trying to create a stylesheet for the whole project where the default font style of widgets (button, text field, text, label and etc.) are defined. The project does parse the styles (background, padding, color and etc.) from the my config/stylesheet.css, but the font style does not change - even if I just a widget and only change the type name field to define the css style id.

How I am able to make the widgets to apply the style from the stylesheets and not from the properties?

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Defining defualt font in custom stylesheet

Post by leoknipp »

If you want to replace fonts using a stylesheet you define the default font in the config file
[ui]
defaultFont = ""

E.g.
[ui]
defaultFont = "Noto Sans,-1,19,5,50,0,0,0,0,0,Regular"

For all objects which have this font defined in the panel file the font can be changed using stylesheets.

Best Regards
Leopold Knipp
Senior Support Specialist

2 posts • Page 1 of 1