C# Class PdfSharp.Fonts.TrueType.FontDescriptorStock

Global table of TrueType fontdescriptor objects.
Show file Open project: GNOME/pdfmod

Public Methods

Method Description
CreateDescriptor ( PdfSharp.Drawing.XFont font ) : FontDescriptor

Gets the FontDescriptor identified by the specified FontSelector. If no such objects exists, a new FontDescriptor is created and added to the stock.

CreateDescriptor ( PdfSharp.Drawing.XFontFamily family, XFontStyle style ) : FontDescriptor

Gets the FontDescriptor identified by the specified FontSelector. If no such objects exists, a new FontDescriptor is created and added to the stock.

CreateDescriptor ( string idName, byte fontData ) : FontDescriptor
FindDescriptor ( PdfSharp.Fonts.TrueType.FontSelector selector ) : FontDescriptor

Gets the FontDescriptor identified by the specified FontSelector. Returns null if no such objects exists.

Private Methods

Method Description
FontDescriptorStock ( ) : System

Method Details

CreateDescriptor() public method

Gets the FontDescriptor identified by the specified FontSelector. If no such objects exists, a new FontDescriptor is created and added to the stock.
public CreateDescriptor ( PdfSharp.Drawing.XFont font ) : FontDescriptor
font PdfSharp.Drawing.XFont
return FontDescriptor

CreateDescriptor() public method

Gets the FontDescriptor identified by the specified FontSelector. If no such objects exists, a new FontDescriptor is created and added to the stock.
public CreateDescriptor ( PdfSharp.Drawing.XFontFamily family, XFontStyle style ) : FontDescriptor
family PdfSharp.Drawing.XFontFamily
style XFontStyle
return FontDescriptor

CreateDescriptor() public method

public CreateDescriptor ( string idName, byte fontData ) : FontDescriptor
idName string
fontData byte
return FontDescriptor

FindDescriptor() public method

Gets the FontDescriptor identified by the specified FontSelector. Returns null if no such objects exists.
public FindDescriptor ( PdfSharp.Fonts.TrueType.FontSelector selector ) : FontDescriptor
selector PdfSharp.Fonts.TrueType.FontSelector
return FontDescriptor