Class FFont
- Namespace
- Global
- Assembly
- Assembly-CSharp.dll
- Inheritance
-
FFont
- Inherited Members
-
Constructors
FFont(string, FAtlasElement, string, float, float, FTextParams, float)
public FFont(string name, FAtlasElement element, string configPath, float offsetX, float offsetY, FTextParams textParams, float fontScale)
Parameters
name string
element FAtlasElement
configPath string
offsetX float
offsetY float
textParams FTextParams
fontScale float
Fields
ASCII_HYPHEN_MINUS
public const int ASCII_HYPHEN_MINUS = 45
Field Value
- int
ASCII_LINEHEIGHT_REFERENCE
public const int ASCII_LINEHEIGHT_REFERENCE = 77
Field Value
- int
ASCII_NEWLINE
public const int ASCII_NEWLINE = 10
Field Value
- int
ASCII_SPACE
public const int ASCII_SPACE = 32
Field Value
- int
_charInfos
public FCharInfo[] _charInfos
Field Value
- FCharInfo[]
_charInfosByID
public Dictionary<uint, FCharInfo> _charInfosByID
Field Value
- Dictionary<uint, FCharInfo>
_configPath
public string _configPath
Field Value
- string
_configRatio
public float _configRatio
Field Value
- float
_configWidth
Field Value
- int
_element
public FAtlasElement _element
Field Value
- FAtlasElement
_kerningCount
Field Value
- int
_kerningInfos
public FKerningInfo[] _kerningInfos
Field Value
- FKerningInfo[]
_lineHeight
Field Value
- float
_maxCharWidth
public float _maxCharWidth
Field Value
- float
_name
Field Value
- string
_nullKerning
public FKerningInfo _nullKerning
Field Value
- FKerningInfo
_offsetX
Field Value
- float
_offsetY
Field Value
- float
_textParams
public FTextParams _textParams
Field Value
- FTextParams
Properties
element
public FAtlasElement element { get; }
Property Value
- FAtlasElement
lineHeight
public float lineHeight { get; }
Property Value
- float
maxCharWidth
public float maxCharWidth { get; }
Property Value
- float
name
public string name { get; }
Property Value
- string
offsetX
public float offsetX { get; }
Property Value
- float
offsetY
public float offsetY { get; }
Property Value
- float
textParams
public FTextParams textParams { get; }
Property Value
- FTextParams
Methods
CombineWithFont(FFont, float)
public void CombineWithFont(FFont addFont, float offsetY)
Parameters
addFont FFont
offsetY float
GetQuadInfoForText(string, FTextParams)
public FLetterQuadLine[] GetQuadInfoForText(string text, FTextParams labelTextParams)
Parameters
text string
labelTextParams FTextParams
Returns
- FLetterQuadLine[]
LineHeight()
public float LineHeight()
Returns
- float
LoadAndParseConfigFile(float)
public void LoadAndParseConfigFile(float fontScale)
Parameters
fontScale float