Show / Hide Table of Contents

Class FontManager

Implements application font manager

Inheritance
System.Object
FontManager
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: EmptyKeys.UserInterface
Assembly: EmptyKeys.UserInterface.dll
Syntax
public sealed class FontManager

Properties

DefaultFont

The default font

Declaration
public static FontBase DefaultFont { get; set; }
Property Value
Type Description
EmptyKeys.UserInterface.Media.FontBase

The default font.

DefaultFontFamily

The default font family

Declaration
public static FontFamily DefaultFontFamily { get; set; }
Property Value
Type Description
FontFamily

The default font family.

DefaultFontSize

The default font size

Declaration
public static float DefaultFontSize { get; set; }
Property Value
Type Description
System.Single

The default size of the font.

Instance

Gets the instance.

Declaration
public static FontManager Instance { get; }
Property Value
Type Description
FontManager

The instance.

LoadScaledFonts

Gets or sets a value indicating whether [scale fonts].

Declaration
public bool LoadScaledFonts { get; set; }
Property Value
Type Description
System.Boolean

true if [scale fonts]; otherwise, false.

Methods

AddFont(String, Single, FontStyle, String)

Adds the font.

Declaration
public void AddFont(string familyName, float size, FontStyle style, string assetName)
Parameters
Type Name Description
System.String familyName

Name of the family.

System.Single size

The size.

FontStyle style

The style.

System.String assetName

Name of the asset.

ClearCache()

Clears the cache.

Declaration
public void ClearCache()

GetFont(String, Single, FontStyle)

Gets the font.

Declaration
public FontBase GetFont(string familyName, float size, FontStyle style)
Parameters
Type Name Description
System.String familyName

Name of the family.

System.Single size

The size.

FontStyle style

The style.

Returns
Type Description
EmptyKeys.UserInterface.Media.FontBase

LoadFonts(Object, String)

Loads the fonts.

Declaration
public void LoadFonts(object contentManager, string basePath = "")
Parameters
Type Name Description
System.Object contentManager

The content manager.

System.String basePath

The base path.

Back to top Generated by DocFX