VectSharp 2.6.1
A light library for C# vector graphics
Loading...
Searching...
No Matches
VectSharp.IFontLibrary Interface Reference

Represents a font library with methods to create FontFamily objects from a string or from FontFamily.StandardFontFamilies. More...

Inheritance diagram for VectSharp.IFontLibrary:

Public Member Functions

FontFamily ResolveFontFamily (string fontFamily)
 Create a new font family from the specified family name or true type file. If the family name or the true type file are not valid, an exception might be raised. More...
 
FontFamily ResolveFontFamily (string fontFamily, params string[] fallback)
 Create a new font family from the specified family name or true type file. If the family name or the true type file are not valid, try to instantiate the font family using the fallback . If none of the fallback family names or true type files are valid, an exception might be raised. More...
 
FontFamily ResolveFontFamily (FontFamily.StandardFontFamilies standardFontFamily)
 Create a new font family from the specified standard font family name. More...
 
FontFamily ResolveFontFamily (string fontFamily, FontFamily.StandardFontFamilies finalFallback, params string[] fallback)
 Create a new font family from the specified family name or true type file. If the family name or the true type file are not valid, try to instantiate the font family using the fallback . If none of the fallback family names or true type files are valid, instantiate a standard font family using the finalFallback . More...
 

Detailed Description

Represents a font library with methods to create FontFamily objects from a string or from FontFamily.StandardFontFamilies.

Definition at line 28 of file FontLibrary.cs.

Member Function Documentation

◆ ResolveFontFamily() [1/4]

FontFamily VectSharp.IFontLibrary.ResolveFontFamily ( FontFamily.StandardFontFamilies  standardFontFamily)

Create a new font family from the specified standard font family name.

Parameters
standardFontFamilyThe standard name of the font family.
Returns
A FontFamily object corresponding to the specified font family.

Implemented in VectSharp.FontLibrary, VectSharp.SimpleFontLibrary, VectSharp.DefaultFontLibrary, VectSharp.FolderFontLibrary, and VectSharp.MultiFontLibrary.

◆ ResolveFontFamily() [2/4]

FontFamily VectSharp.IFontLibrary.ResolveFontFamily ( string  fontFamily)

Create a new font family from the specified family name or true type file. If the family name or the true type file are not valid, an exception might be raised.

Parameters
fontFamilyThe name of the font family to create, or the path to a TTF file.
Returns
If the font family name or the true type file is valid, a FontFamily object corresponding to the specified font family.

Implemented in VectSharp.FontLibrary, VectSharp.SimpleFontLibrary, VectSharp.DefaultFontLibrary, VectSharp.FolderFontLibrary, and VectSharp.MultiFontLibrary.

◆ ResolveFontFamily() [3/4]

FontFamily VectSharp.IFontLibrary.ResolveFontFamily ( string  fontFamily,
FontFamily.StandardFontFamilies  finalFallback,
params string[]  fallback 
)

Create a new font family from the specified family name or true type file. If the family name or the true type file are not valid, try to instantiate the font family using the fallback . If none of the fallback family names or true type files are valid, instantiate a standard font family using the finalFallback .

Parameters
fontFamilyThe name of the font family to create, or the path to a TTF file.
fallbackNames of additional font families or TTF files, which will be tried if the first fontFamily is not valid.
finalFallbackThe standard name of the font family that will be used if none of the fallback families are valid.
Returns
A FontFamily object corresponding to the first of the specified font families that is valid.

Implemented in VectSharp.FontLibrary.

◆ ResolveFontFamily() [4/4]

FontFamily VectSharp.IFontLibrary.ResolveFontFamily ( string  fontFamily,
params string[]  fallback 
)

Create a new font family from the specified family name or true type file. If the family name or the true type file are not valid, try to instantiate the font family using the fallback . If none of the fallback family names or true type files are valid, an exception might be raised.

Parameters
fontFamilyThe name of the font family to create, or the path to a TTF file.
fallbackNames of additional font families or TTF files, which will be tried if the first fontFamily is not valid.
Returns
A FontFamily object corresponding to the first of the specified font families that is valid.

Implemented in VectSharp.FontLibrary.


The documentation for this interface was generated from the following file: