mojo.app.Theme.OpenFont - nitrologic/monkey2 GitHub Wiki
mojo::mojo.app.mojo.app.Theme.OpenFont
mojo:mojo.graphics.Font( path:monkey:monkey.types.String,size:monkey:monkey.types.Float )
Method OpenFont:Loads a font from a file.
If file
is an absolute path, this method is effectively the same as calling Font.Load.
If file
is not an absolute path, the font is searched for in the following locations:
-
The theme's directory.
-
The asset::fonts/ directory.