• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Inferno
    • CollisionMode
    • DrawMode
    • Game
    • Game.OnResizeEventArgs
    • GameState
    • GameState.StateOnDrawEventArgs
    • GameWindow
    • Instance
    • MathHelper
    • Matrix
    • Point
    • Rectangle
    • Settings
    • SpatialMode
    • UpdateMode
    • Vector2
    • Vector3
    • Vector4
  • Inferno.Audio
    • AudioDevice
    • Sound
  • Inferno.Content
    • ContentLoader
  • Inferno.Formats.Audio
    • WaveFormat
  • Inferno.Formats.Graphics.Text
    • FontFormat
  • Inferno.Graphics
    • Camera
    • Color
    • GraphicsDevice
    • PlatformType
    • Renderable
    • RenderableType
    • Renderer
    • RenderSortMode
    • RenderTarget
    • Shader
    • ShaderLanguage
    • ShaderType
    • Sprite
    • Texture2D
    • Tileset
  • Inferno.Graphics.Text
    • Font
    • FontBuilder
  • Inferno.Input
    • ButtonState
    • Key
    • Keyboard
    • Keyboard.KeyEventArgs
    • KeyboardState
    • KeyState
    • Mouse
    • MouseState
  • Inferno.Tiled
    • RenderOrder
    • TiledLayer
    • TiledLayerChunk
    • TiledLoader
    • TiledMap
    • TiledMapOrientation
    • TiledObject
    • TiledObjectLayer
    • TiledVersion
  • Inferno.UI
    • MessageBox
    • MessageBoxType
    • UserInterface
  • Inferno.UI.Controls
    • Button
    • Control
    • Control.ControlClickedEvent
    • Control.ControlHoveredEvent
    • Control.TextChangedEventArgs
    • ControlState
    • Cursor
    • Label

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 Source

GlyphLineCount

Declaration
public static int GlyphLineCount
Field Value
Type Description
System.Int32
| Improve this Doc View Source

GlyphsPerLine

Declaration
public static int GlyphsPerLine
Field Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

CreateFontFromFile(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
| Improve this Doc View Source

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
| Improve this Doc View Source

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>
  • Improve this Doc
  • View Source
Back to top Generated by DocFX