The font shows up on the overlay’s next frame. Until then text drawn with it uses the default
font, and the first
measureText with it waits for that frame.Loading
constructor
.ttf, .otf or .ttc file. path is relative to the script folder. A missing file
throws ENOENT, something that isn’t a font throws EINVAL.
fromMemory
data is copied.
Options
Properties
toString() gives something like Font(ready, "C:/…/Inter.ttf").
Limits
- Loading the same file with the same options again reuses the font, so reloading a script is free.
- A session holds up to 64 different fonts. Past that, loading throws
ELIMIT. - Files can be up to 64 MB.
- ESP text still takes only the built-in ESP fonts.