Esempio n. 1
0
 /// <summary>
 /// Get the height of a GTA font
 /// </summary>
 public static int GetHeight(StandardFont font = StandardFont.Default, float scale = 1)
 {
     return(MtaClient.DxGetFontHeight(scale, font.ToString().ToLower()));
 }
Esempio n. 2
0
 /// <summary>
 /// Get the height of a custom font
 /// </summary>
 public static int GetHeight(Font font, float scale = 1)
 {
     return(MtaClient.DxGetFontHeight(scale, font.MTAFont));
 }
Esempio n. 3
0
 /// <summary>
 /// Get the height of this font
 /// </summary>
 public int GetHeight(float scale = 1)
 {
     return(MtaClient.DxGetFontHeight(scale, _font));
 }