Class FontBuilder
A font bitmap builder. This will take a System.Drawing.Font and turn it into a Texture2D for use with Inferno.Graphics.Text.Font. This is only available on desktop, for testing purposes only.
Inheritance
System.Object
FontBuilder
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Inferno.Graphics.Text
Assembly: Inferno.Desktop.dll
Syntax
public class FontBuilder
Fields
| Improve this Doc View SourceGlyphLineCount
Declaration
public static int GlyphLineCount
Field Value
Type | Description |
---|---|
System.Int32 |
GlyphsPerLine
Declaration
public static int GlyphsPerLine
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceCreateFontFromFile(String, Int32, Boolean)
Declaration
public static Font CreateFontFromFile(string filename, int fontSize = 12, bool antialiasing = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | |
System.Int32 | fontSize | |
System.Boolean | antialiasing |
Returns
Type | Description |
---|---|
Font |
CreateFontFromName(String, Int32, Boolean)
Declaration
public static Font CreateFontFromName(string name, int fontSize = 12, bool antialiasing = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.Int32 | fontSize | |
System.Boolean | antialiasing |
Returns
Type | Description |
---|---|
Font |
CreateFontStuff(String, String, Int32, Boolean)
Declaration
public static Tuple<Bitmap, Vector4[], int, int> CreateFontStuff(string name, string filename = "", int fontSize = 12, bool antialiasing = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | filename | |
System.Int32 | fontSize | |
System.Boolean | antialiasing |
Returns
Type | Description |
---|---|
System.Tuple<System.Drawing.Bitmap, Vector4[], System.Int32, System.Int32> |