Class Font
Class representing custom font elements
Assembly: SlipeClient.dll
Syntax
Constructors
|
Improve this Doc
View Source
Font(String, Int32, Boolean, FontQuality)
Create a new font from a path
Declaration
public Font(string filePath, int size = 9, bool bold = false, FontQuality quality = FontQuality.Default)
Parameters
Properties
|
Improve this Doc
View Source
MTAFont
Get the MTA font element used
Declaration
public MtaElement MTAFont { get; }
Property Value
Type |
Description |
Slipe.MtaDefinitions.MtaElement |
|
Methods
|
Improve this Doc
View Source
GetHeight(Font, Single)
Get the height of a custom font
Declaration
public static int GetHeight(Font font, float scale = 1F)
Parameters
Returns
|
Improve this Doc
View Source
GetHeight(StandardFont, Single)
Get the height of a GTA font
Declaration
public static int GetHeight(StandardFont font = StandardFont.Default, float scale = 1F)
Parameters
Returns
|
Improve this Doc
View Source
GetHeight(Single)
Get the height of this font
Declaration
public int GetHeight(float scale = 1F)
Parameters
Type |
Name |
Description |
Single |
scale |
|
Returns