Class Font
- Namespace
- Fantas
- Assembly
- Fantas.dll
Font (TTF font on iOS/tvOS/macOS, and SpriteFont on other platforms)
public sealed class Font : Object
- Inheritance
-
Font
Properties
DefaultFont
Default Font used by LabelNode
public static Font DefaultFont { get; set; }
Property Value
Name
Font name
public string Name { get; }
Property Value
Methods
FromCompressedResource(Assembly, string)
Load a font from a compressed embedded resource
public static Font FromCompressedResource(Assembly assembly, string resourceFontName)
Parameters
Returns
FromCompressedResource(Assembly, string, float)
Load a font from a compressed embedded resource using the given scale
public static Font FromCompressedResource(Assembly assembly, string resourceFontName, float preferredFontSize)
Parameters
Returns
FromResource(Assembly, string)
Load a font from a embedded resource
public static Font FromResource(Assembly assembly, string resourceFontName)
Parameters
Returns
FromResource(Assembly, string, float)
Load a font from a embedded resource using the given scale
public static Font FromResource(Assembly assembly, string resourceFontName, float preferredFontSize)
Parameters
assemblyAssemblyresourceFontNamestringpreferredFontSizefloatPreferred Font size to be used in labels (only for TTF fonts)