murayuki / gfx-font-converter

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

Home Page:https://forum.cfx.re/t/4952616

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://forum.cfx.re/t/4952616


Languages

Language:PowerShell 100.0%