Show / Hide Table of Contents

Class Font

Class representing custom font elements

Inheritance
Object
Font
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Client.Dx
Assembly: SlipeClient.dll
Syntax
public class Font

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
Type Name Description
String filePath
Int32 size
Boolean bold
FontQuality quality

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
Type Name Description
Font font
Single scale
Returns
Type Description
Int32
| 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
Type Name Description
StandardFont font
Single scale
Returns
Type Description
Int32
| 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
Type Description
Int32
  • Improve this Doc
  • View Source
Back to top Generated by DocFX