Skip to content

initfont

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'.

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
all

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

File TypeString font requirement
*.ttf
Dink
all
Font name

Freedink
all
File Name
*.otf
Dink
all
File name
*.fon
Dink
all
Font name
*.ttc
Dink
all
Font name

Sticking to the above should get fonts to work most of the time. Sometimes fonts just won't work though - it's best to test them individually to make sure.