FontSystem Class
Namespace: Stride.Graphics.Font
Assembly: Stride.Graphics.dll
The system managing the fonts.
System.Object →
FontSystem
Derived from FontSystem:
public class FontSystem : IFontFactory
Name |
Description |
Constructors
|
|
FontSystem() |
Create a new instance of FontSystem base on the provided Stride.Graphics.Font.FontSystem.GraphicsDevice.
|
Methods
|
|
Draw() |
|
|
Load(GraphicsDevice, IDatabaseFileProviderService) |
Load this system.
|
|
NewDynamic(Single, String, FontStyle, FontAntiAliasMode, Boolean, Single, Single, Char) |
|
|
NewScalable(Single, IList<Glyph>, IList<Image>, Single, Single, IList<Kerning>, Single, Single, Char) |
|
|
NewScalable(Single, IList<Glyph>, IList<Texture>, Single, Single, IList<Kerning>, Single, Single, Char) |
|
|
NewStatic(Single, IList<Glyph>, IList<Image>, Single, Single, IList<Kerning>, Single, Single, Char) |
|
|
NewStatic(Single, IList<Glyph>, IList<Texture>, Single, Single, IList<Kerning>, Single, Single, Char) |
|
|
Unload() |
|
|
Improve this Doc
View Source
Constructors
FontSystem()
Create a new instance of FontSystem base on the provided Stride.Graphics.Font.FontSystem.GraphicsDevice.
|
Improve this Doc
View Source
Methods
Draw()
Load(GraphicsDevice, IDatabaseFileProviderService)
public void Load(GraphicsDevice graphicsDevice, IDatabaseFileProviderService fileProviderService)
Parameters
Exceptions
Type |
Condition |
System.ArgumentNullException |
graphicsDevice
|
NewDynamic(Single, String, FontStyle, FontAntiAliasMode, Boolean, Single, Single, Char)
public SpriteFont NewDynamic(float defaultSize, string fontName, FontStyle style, FontAntiAliasMode antiAliasMode = FontAntiAliasMode.Default, bool useKerning = false, float extraSpacing = 0F, float extraLineSpacing = 0F, char defaultCharacter = ' ')
Parameters
Type |
Name |
Description |
System.Single |
defaultSize |
|
System.String |
fontName |
|
FontStyle |
style |
|
FontAntiAliasMode |
antiAliasMode |
|
System.Boolean |
useKerning |
|
System.Single |
extraSpacing |
|
System.Single |
extraLineSpacing |
|
System.Char |
defaultCharacter |
|
Returns
NewScalable(Single, IList<Glyph>, IList<Image>, Single, Single, IList<Kerning>, Single, Single, Char)
public SpriteFont NewScalable(float size, IList<Glyph> glyphs, IList<Image> images, float baseOffset, float defaultLineSpacing, IList<Kerning> kernings = null, float extraSpacing = 0F, float extraLineSpacing = 0F, char defaultCharacter = ' ')
Parameters
Type |
Name |
Description |
System.Single |
size |
|
System.Collections.Generic.IList<Glyph> |
glyphs |
|
System.Collections.Generic.IList<Image> |
images |
|
System.Single |
baseOffset |
|
System.Single |
defaultLineSpacing |
|
System.Collections.Generic.IList<Kerning> |
kernings |
|
System.Single |
extraSpacing |
|
System.Single |
extraLineSpacing |
|
System.Char |
defaultCharacter |
|
Returns
NewScalable(Single, IList<Glyph>, IList<Texture>, Single, Single, IList<Kerning>, Single, Single, Char)
public SpriteFont NewScalable(float size, IList<Glyph> glyphs, IList<Texture> textures, float baseOffset, float defaultLineSpacing, IList<Kerning> kernings = null, float extraSpacing = 0F, float extraLineSpacing = 0F, char defaultCharacter = ' ')
Parameters
Type |
Name |
Description |
System.Single |
size |
|
System.Collections.Generic.IList<Glyph> |
glyphs |
|
System.Collections.Generic.IList<Texture> |
textures |
|
System.Single |
baseOffset |
|
System.Single |
defaultLineSpacing |
|
System.Collections.Generic.IList<Kerning> |
kernings |
|
System.Single |
extraSpacing |
|
System.Single |
extraLineSpacing |
|
System.Char |
defaultCharacter |
|
Returns
NewStatic(Single, IList<Glyph>, IList<Image>, Single, Single, IList<Kerning>, Single, Single, Char)
public SpriteFont NewStatic(float size, IList<Glyph> glyphs, IList<Image> images, float baseOffset, float defaultLineSpacing, IList<Kerning> kernings = null, float extraSpacing = 0F, float extraLineSpacing = 0F, char defaultCharacter = ' ')
Parameters
Type |
Name |
Description |
System.Single |
size |
|
System.Collections.Generic.IList<Glyph> |
glyphs |
|
System.Collections.Generic.IList<Image> |
images |
|
System.Single |
baseOffset |
|
System.Single |
defaultLineSpacing |
|
System.Collections.Generic.IList<Kerning> |
kernings |
|
System.Single |
extraSpacing |
|
System.Single |
extraLineSpacing |
|
System.Char |
defaultCharacter |
|
Returns
NewStatic(Single, IList<Glyph>, IList<Texture>, Single, Single, IList<Kerning>, Single, Single, Char)
public SpriteFont NewStatic(float size, IList<Glyph> glyphs, IList<Texture> textures, float baseOffset, float defaultLineSpacing, IList<Kerning> kernings = null, float extraSpacing = 0F, float extraLineSpacing = 0F, char defaultCharacter = ' ')
Parameters
Type |
Name |
Description |
System.Single |
size |
|
System.Collections.Generic.IList<Glyph> |
glyphs |
|
System.Collections.Generic.IList<Texture> |
textures |
|
System.Single |
baseOffset |
|
System.Single |
defaultLineSpacing |
|
System.Collections.Generic.IList<Kerning> |
kernings |
|
System.Single |
extraSpacing |
|
System.Single |
extraLineSpacing |
|
System.Char |
defaultCharacter |
|
Returns
Unload()
Extension Methods