GetFontTrait

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Returns traits of specified font;

Syntax

[help]
(fValue:float) GetFontTrait iFont:int  iTrait:int

Traits

0 - Base Height;
1 - Line Height;

Example

set fValue to GetFontTrait 1 0

Will return base height of Font#1

Notes

  • Base Height is corresponding with "Height" UI trait in text UI element.
  • Line Height is (presumably) real font height.
  • This function will work on fonts injected with JiP plugin.