createFont

Create a font from your PNG JSON pairing in the directory.

You do not specify an extension.

So if you have: cool.png and cool.json You would call this as: createFont("fonts/cool")

Name is an optional. You will call into Razor Font by this name.

If you do not specify a name, you must call into Razor Font by the fileLocation, literal.

If you turn on trimming, your font will go from monospace to proportional.

Spacing is how far the letters are from each other. Default: 1.0 pixel

spaceCharacterSize is how big the ' ' (space) character is. By default, it's 4 pixels wide.

void
createFont
(,
string name = ""
,
bool trimming = false
,
double spacing = 1.0
,
double spaceCharacterSize = 4.0
)

Meta