So first you need to convert the font file your using to a gfx file so you can register it. You may use: Font 2 GFX Converter
Then you need to put the GFX file into stream. Afterwards in your server file you need to use the following:
RegisterFontFile(“Your Font File Name without .GFX”)
RegisterFontID(“Your Font File Name without .GFX”)
Afterwards instead of using font = 1 you use: font = Your Font File Name without .GFX
So with Arial.gfx it would look like:
RegisterFontFile(“Arial”)
RegisterFontId(“Arial”)
font = Arial