- 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 fromoutput
folder to your script'sstream
folder - Register the font in-game
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>'
To fix that you need to change the execution policy.
- Open PowerShell as Administrator
- Type
Set-ExecutionPolicy RemoteSigned
- Type
Y
to confirm
This is caused by having a whitespace in the font file path.
Only way you can fix this is by moving the font file to another folder, without a whitespace in it's path.
More info can be found in issue #1.