Class Font
- Namespace
- Fantas
- Assembly
- Fantas.dll
Font (TTF font on iOS/tvOS/macOS, and SpriteFont on other platforms)
public sealed class Font
- Inheritance
-
Font
- Inherited Members
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
assembly
AssemblyresourceFontName
stringpreferredFontSize
floatPreferred Font size to be used in labels (only for TTF fonts)