Skip to content

initfont

Version: Dink   Freedink   DinkHD   YeDink

Prototypevoid initfont(string[31] font)

initfont() will cause the game to use font for all current and future text. Note that the font must be installed as a normal font (in the Windows/Fonts folder on Windows). The default font is 'Arial'.

YeDink
Loading a new text typeface through initfont will check for a TTF file in the root of the Dmod directory as well.

There are some differences in the way font is interpreted between Dink/Freedink, and also between font filetypes.

Depending on the Dink Engine version and the font filetype, you will need to specify font as either a font name, or the actual font filename.

TIP

The Font Name is the name displayed when you preview a font by opening it.

The actual font filename is viewed in the file properites - Right Click on the font and click properties and find the filename.

Below you will find the requirements for string font based on filetype and Dink Engine version.

Freedink

Only Truetype fonts(*.ttf) are compatible with initfont()

Sometimes fonts just won't work - it's best to test them individually to make sure.