Пример #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()));
 }
Пример #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));
 }
Пример #3
0
 /// <summary>
 /// Get the height of this font
 /// </summary>
 public int GetHeight(float scale = 1)
 {
     return(MtaClient.DxGetFontHeight(scale, _font));
 }