/gfx-font-converter

PowerShell script to easily convert a font file to GFX format.

Primary LanguagePowerShell

How to use

  • Run the convert.ps1 script
  • Drag and drop your font file to the PowerShell window
  • Confirm and enter prompt details
  • Add the new .gfx file from output folder to your script's stream folder
  • Register the font in-game
Example of how to register a custom font
RegisterFontFile('Arial') -- File name without file extension
local fontId = RegisterFontId('Arial') -- Font name you entered in the convert script
local fontText = '<font face="Arial">This text will have the Arial font</font>'

Credits