New to Telerik UI for WinForms? Start a free 30-day trial

Provides the shared font registry and font-character/style lookup used by RichTextEditor text layout. The default font list is initialized when the registry is first accessed.

Definition

Namespace:Telerik.WinForms.Documents.Layout

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public static class FontManager

Inheritance: objectFontManager

Methods

Selects the first available style for the font family, checking regular, bold, italic, underline, then strikeout. If none of the first four styles is available, returns strikeout.

C#
public static FontStyle GetFontSupportedStyle(FontFamily fontFamily)
Parameters:fontFamilyFontFamily

The font family whose available styles are checked.

Returns:

FontStyle

The first available style in the documented check order, or strikeout as the final fallback.

Gets the registered FontFamilyInfo.

C#
public static FontFamilyInfo GetRegisteredFontFamilyInfo(FontFamily fontFamily)
Parameters:fontFamilyFontFamily

The font family.

Returns:

FontFamilyInfo

Gets the registered FontFamilyInfo.

C#
public static FontFamilyInfo GetRegisteredFontFamilyInfo(string fontFamilyName)
Parameters:fontFamilyNamestring

The font family name.

Returns:

FontFamilyInfo

Gets registered fonts.

C#
public static RegisteredFonts GetRegisteredFonts()
Returns:

RegisteredFonts

Gets registered fonts in ascending order.

C#
public static IList<FontFamilyInfo> GetRegisteredFontsAscending()
Returns:

IList<FontFamilyInfo>

Gets the characters supported by a font family. The results are cached by the font family's source.

C#
public static ICollection<char> GetSupportedCharacters(FontFamily fontFamily)
Parameters:fontFamilyFontFamily

The font family whose available characters are queried.

Returns:

ICollection<char>

The supported characters for the font family.

Determines whether the specified font family is registered.

C#
public static bool HasRegisteredFontFamily(FontFamily fontFamily)
Parameters:fontFamilyFontFamily

The font family.

Returns:

bool

Determines whether the specified font family is registered.

C#
public static bool HasRegisteredFontFamily(string fontFamilyName)
Parameters:fontFamilyNamestring

The font family name.

Returns:

bool

Registers a font.

C#
public static void RegisterFont(FontFamily fontFamily)
Parameters:fontFamilyFontFamily

The font family.

Registers a FontFamilyInfo.

C#
public static void RegisterFont(FontFamilyInfo fontFamilyInfo)
Parameters:fontFamilyInfoFontFamilyInfo

The font family info.

Unregisters a font.

C#
public static bool UnregisterFont(FontFamily fontFamily)
Parameters:fontFamilyFontFamily

The font to unregister.

Returns:

bool

Unregisters a FontFamilyInfo.

C#
public static bool UnregisterFont(FontFamilyInfo fontFamilyInfo)
Parameters:fontFamilyInfoFontFamilyInfo

The font family info.

Returns:

bool