skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class FontsRepository

Represents the fonts repository. It can be used to create new font object.

Inheritance
System.Object
FontsRepository
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Documents.Fixed.Model.Fonts
Assembly: Telerik.Windows.Documents.Fixed.dll

Syntax

public static class FontsRepository

Properties

Courier

Gets the courier font object.

Declaration
public static FontBase Courier { get; }
Property Value
FontBase

CourierBold

Gets the courier bold font object.

Declaration
public static FontBase CourierBold { get; }
Property Value
FontBase

CourierBoldOblique

Gets the courier bold oblique font object.

Declaration
public static FontBase CourierBoldOblique { get; }
Property Value
FontBase

CourierOblique

Gets the courier oblique font object.

Declaration
public static FontBase CourierOblique { get; }
Property Value
FontBase

Helvetica

Gets the helvetica font object.

Declaration
public static FontBase Helvetica { get; }
Property Value
FontBase

The helvetica.

HelveticaBold

Gets the helvetica bold font object.

Declaration
public static FontBase HelveticaBold { get; }
Property Value
FontBase

The helvetica.

HelveticaBoldOblique

Gets the helvetica bold oblique font object.

Declaration
public static FontBase HelveticaBoldOblique { get; }
Property Value
FontBase

The helvetica.

HelveticaOblique

Gets the helvetica oblique font object.

Declaration
public static FontBase HelveticaOblique { get; }
Property Value
FontBase

The helvetica.

Symbol

Gets the symbol font object.

Declaration
public static FontBase Symbol { get; }
Property Value
FontBase

TimesBold

Gets the times bold font object.

Declaration
public static FontBase TimesBold { get; }
Property Value
FontBase

TimesBoldItalic

Gets the times bold italic font object.

Declaration
public static FontBase TimesBoldItalic { get; }
Property Value
FontBase

TimesItalic

Gets the times italic font object.

Declaration
public static FontBase TimesItalic { get; }
Property Value
FontBase

TimesRoman

Gets the times roman font object.

Declaration
public static FontBase TimesRoman { get; }
Property Value
FontBase

ZapfDingbats

Gets the zapfdingbats font object.

Declaration
public static FontBase ZapfDingbats { get; }
Property Value
FontBase

Methods

ClearRegisteredFonts()

Clears the registered fonts.

Declaration
public static void ClearRegisteredFonts()

RegisterFont(FontFamily, FontStyle, FontWeight, Byte[])

Registers font.

Declaration
public static void RegisterFont(FontFamily fontFamily, FontStyle fontStyle, FontWeight fontWeight, byte[] data)
Parameters
System.Windows.Media.FontFamily fontFamily

The font family.

System.Windows.FontStyle fontStyle

The font style.

System.Windows.FontWeight fontWeight

The font weight.

System.Byte[] data

The font data.

ReplaceStandardFont(StandardFontNames, Byte[])

Changes the default implementation of a Standard Font.

Declaration
public static void ReplaceStandardFont(StandardFontNames name, byte[] data)
Parameters
StandardFontNames name

The name of the standard font to be changed.

System.Byte[] data

The font data.

Exceptions
NotSupportedFontException

Thrown when an invalid font type is passed.

TryCreateFont(FontFamily, FontStyle, FontWeight, out FontBase)

Tries to create a new font object based on the given font properties.

Declaration
public static bool TryCreateFont(FontFamily fontFamily, FontStyle fontStyle, FontWeight fontWeight, out FontBase font)
Parameters
System.Windows.Media.FontFamily fontFamily

The font family.

System.Windows.FontStyle fontStyle

The font style.

System.Windows.FontWeight fontWeight

The font weight.

FontBase font

The font.

Returns
System.Boolean

True if the font is created successfully.

TryCreateFont(FontFamily, out FontBase)

Tries to create a new font object based on the given font properties.

Declaration
public static bool TryCreateFont(FontFamily fontFamily, out FontBase font)
Parameters
System.Windows.Media.FontFamily fontFamily

The font family.

FontBase font

The font.

Returns
System.Boolean

True if the font is created successfully.

Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.