- Run the
convert.ps1script - Drag and drop your font file to the PowerShell window
- Confirm and enter prompt details
- Add the new
.gfxfile fromoutputfolder to your script'sstreamfolder - 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
Yto 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.