Import to Text+
Locate the TextPlus
module in your explorer.
Open the CustomFonts
module located inside of it.
Add your font like this:
Add your image id for the font in the same table as the Size
and Characters
, like this:
For fonts that have multiple weights and/or styles, it's recommended to use the following format:
Use the custom font
Using custom fonts is extremely simple.
Instead of providing a Font
object, directly reference the custom font table like this:
Don't require the fonts module. Simply require the TextPlus module; the custom fonts table will be accessible from there.
Last updated