SetFontFile

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Sets the source-file (.fnt) of the specified font type (1-8, 10-89). This enables to dynamically manipulate the graphics of the game's fonts during run-time. Returns 1 (true) on success, 0 (false) otherwise.

Syntax

[help]
(success:0/1) SetFontFile fontType:int{1-8, 10-89} filePath:string

Example

SetFontFile 2 "textures\fonts\My_Custom_Font.fnt" 

Notes

  • filePath is relative to the game's Data folder.

See Also