Hello Kolien,
I could be wrong, but I think this can be accomplished using Dynamic Classes to define a style based on a given condition (an Enum, as you mentioned):
https://docs.mendix.com/refguide/common-widget-properties/#dynamicclasses
You can define in your main.js different styles and apply these styles as needed, depending on the condition.
To define different custom font styles, see the article: