blitz-foundation / monkey2

zlib License
3 stars 0 forks source link

Loading ImageFont in mojo theme #85

Open Pharmhaus-2 opened 5 years ago

Pharmhaus-2 commented 5 years ago

Original Author: seankarol

I can't seem to find a way to load ImageFont in mojo.app.Theme JSON definition. After digging through the source it appears that a mojo theme will never load an ImageFont through the JSON.

I can directly assign a Font to a style such as App.Theme.GetStyle("...").Font = MyImageFont though I also can't iterate through all styles and states, making this pretty tedious.

Thank you in advance.

Pharmhaus-2 commented 5 years ago

@seankarol Do you have a mojo.app.Theme which can be used to reproduce the issue?