Class FontsRepository
Represents the fonts repository. It can be used to create new font object.
Inheritance
Inherited Members
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. |