FontManager
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:
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.
public static FontStyle GetFontSupportedStyle(FontFamily fontFamily)
The font family whose available styles are checked.
Returns:The first available style in the documented check order, or strikeout as the final fallback.
Gets the registered FontFamilyInfo.
public static FontFamilyInfo GetRegisteredFontFamilyInfo(FontFamily fontFamily)
The font family.
Returns:Gets the registered FontFamilyInfo.
public static FontFamilyInfo GetRegisteredFontFamilyInfo(string fontFamilyName)
The font family name.
Returns:Gets registered fonts.
Gets registered fonts in ascending order.
Gets the characters supported by a font family. The results are cached by the font family's source.
public static ICollection<char> GetSupportedCharacters(FontFamily fontFamily)
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.
public static bool HasRegisteredFontFamily(FontFamily fontFamily)
The font family.
Returns:Registers a font.
public static void RegisterFont(FontFamily fontFamily)
The font family.
Registers a FontFamilyInfo.
public static void RegisterFont(FontFamilyInfo fontFamilyInfo)
The font family info.
Unregisters a font.
public static bool UnregisterFont(FontFamily fontFamily)
The font to unregister.
Returns:Unregisters a FontFamilyInfo.
public static bool UnregisterFont(FontFamilyInfo fontFamilyInfo)
The font family info.
Returns: