VectSharp 2.6.1
A light library for C# vector graphics
|
A font library that can be used to cache and resolve font family names. More...
Public Member Functions | |||||||
SimpleFontLibrary (IFontLibrary standardFontLibrary) | |||||||
Create a new SimpleFontLibrary instance. More... | |||||||
SimpleFontLibrary () | |||||||
Create a new SimpleFontLibrary instance, using the default font library to resolve the standard font families. More... | |||||||
SimpleFontLibrary (FontFamily timesRoman, FontFamily timesBold, FontFamily timesItalic, FontFamily timesBoldItalic, FontFamily helvetica, FontFamily helveticaBold, FontFamily helveticaOblique, FontFamily helveticaBoldOblique, FontFamily courier, FontFamily courierBold, FontFamily courierOblique, FontFamily courierBoldOblique, FontFamily symbol, FontFamily zapfdingbats) | |||||||
Create a new SimpleFontLibrary instance, with the specified replacements for the standard font families. More... | |||||||
SimpleFontLibrary (string timesRoman, string timesBold, string timesItalic, string timesBoldItalic, string helvetica, string helveticaBold, string helveticaOblique, string helveticaBoldOblique, string courier, string courierBold, string courierOblique, string courierBoldOblique, string symbol, string zapfdingbats) | |||||||
Create a new SimpleFontLibrary instance, with the specified replacements for the standard font families. More... | |||||||
void | Add (string fontFamilyName, FontFamily fontFamily) | ||||||
Add the specified font family to the library with the specified name. More... | |||||||
void | Add (FontFamily fontFamily) | ||||||
Add the specified font family to the library. More... | |||||||
void | Add (string fileName) | ||||||
Add the font family contained in the specified True Type Font file to the library. More... | |||||||
void | Add (string fontFamily, string fileName) | ||||||
Add the font family contained in the specified True Type Font file to the library, with the specified name. The font family is not loaded until it is requested for the first time. More... | |||||||
override FontFamily | ResolveFontFamily (FontFamily.StandardFontFamilies standardFontFamily) | ||||||
Create a new font family from the specified standard font family name.
| |||||||
override 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.
| |||||||
Public Member Functions inherited from VectSharp.FontLibrary | |||||||
abstract 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.
| |||||||
abstract FontFamily | ResolveFontFamily (FontFamily.StandardFontFamilies standardFontFamily) | ||||||
Create a new font family from the specified standard font family name.
| |||||||
virtual 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.
| |||||||
virtual 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 .
| |||||||
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... | |||||||
A font library that can be used to cache and resolve font family names.
Definition at line 185 of file FontLibrary.cs.
VectSharp.SimpleFontLibrary.SimpleFontLibrary | ( | IFontLibrary | standardFontLibrary | ) |
Create a new SimpleFontLibrary instance.
standardFontLibrary | An existing font library that will be used to resolve the standard font families. |
Definition at line 197 of file FontLibrary.cs.
VectSharp.SimpleFontLibrary.SimpleFontLibrary | ( | ) |
Create a new SimpleFontLibrary instance, using the default font library to resolve the standard font families.
Definition at line 217 of file FontLibrary.cs.
VectSharp.SimpleFontLibrary.SimpleFontLibrary | ( | FontFamily | timesRoman, |
FontFamily | timesBold, | ||
FontFamily | timesItalic, | ||
FontFamily | timesBoldItalic, | ||
FontFamily | helvetica, | ||
FontFamily | helveticaBold, | ||
FontFamily | helveticaOblique, | ||
FontFamily | helveticaBoldOblique, | ||
FontFamily | courier, | ||
FontFamily | courierBold, | ||
FontFamily | courierOblique, | ||
FontFamily | courierBoldOblique, | ||
FontFamily | symbol, | ||
FontFamily | zapfdingbats | ||
) |
Create a new SimpleFontLibrary instance, with the specified replacements for the standard font families.
timesRoman | The font family to use for the Times-Roman standard font. |
timesBold | The font family to use for the Times-Bold standard font. |
timesItalic | The font family to use for the Times-Italic standard font. |
timesBoldItalic | The font family to use for the Times-BoldItalic standard font. |
helvetica | The font family to use for the Helvetica standard font. |
helveticaBold | The font family to use for the Helvetica-Bold standard font. |
helveticaOblique | The font family to use for the Helvetica-Oblique standard font. |
helveticaBoldOblique | The font family to use for the Helvetica-BoldOblique standard font. |
courier | The font family to use for the Courier standard font. |
courierBold | The font family to use for the Courier-Bold standard font. |
courierOblique | The font family to use for the Courier-Oblique standard font. |
courierBoldOblique | The font family to use for the Courier-BoldOblique standard font. |
symbol | The font family to use for the Symbol standard font. |
zapfdingbats | The font family to use for the Zapfdingbats standard font. |
Definition at line 239 of file FontLibrary.cs.
VectSharp.SimpleFontLibrary.SimpleFontLibrary | ( | string | timesRoman, |
string | timesBold, | ||
string | timesItalic, | ||
string | timesBoldItalic, | ||
string | helvetica, | ||
string | helveticaBold, | ||
string | helveticaOblique, | ||
string | helveticaBoldOblique, | ||
string | courier, | ||
string | courierBold, | ||
string | courierOblique, | ||
string | courierBoldOblique, | ||
string | symbol, | ||
string | zapfdingbats | ||
) |
Create a new SimpleFontLibrary instance, with the specified replacements for the standard font families.
timesRoman | The font family to use for the Times-Roman standard font. |
timesBold | The font family to use for the Times-Bold standard font. |
timesItalic | The font family to use for the Times-Italic standard font. |
timesBoldItalic | The font family to use for the Times-BoldItalic standard font. |
helvetica | The font family to use for the Helvetica standard font. |
helveticaBold | The font family to use for the Helvetica-Bold standard font. |
helveticaOblique | The font family to use for the Helvetica-Oblique standard font. |
helveticaBoldOblique | The font family to use for the Helvetica-BoldOblique standard font. |
courier | The font family to use for the Courier standard font. |
courierBold | The font family to use for the Courier-Bold standard font. |
courierOblique | The font family to use for the Courier-Oblique standard font. |
courierBoldOblique | The font family to use for the Courier-BoldOblique standard font. |
symbol | The font family to use for the Symbol standard font. |
zapfdingbats | The font family to use for the Zapfdingbats standard font. |
Definition at line 297 of file FontLibrary.cs.
void VectSharp.SimpleFontLibrary.Add | ( | FontFamily | fontFamily | ) |
Add the specified font family to the library.
fontFamily | The font family to add. |
Definition at line 360 of file FontLibrary.cs.
void VectSharp.SimpleFontLibrary.Add | ( | string | fileName | ) |
Add the font family contained in the specified True Type Font file to the library.
fileName | The path to the TTF file containing the font family. |
Definition at line 372 of file FontLibrary.cs.
void VectSharp.SimpleFontLibrary.Add | ( | string | fontFamily, |
string | fileName | ||
) |
Add the font family contained in the specified True Type Font file to the library, with the specified name. The font family is not loaded until it is requested for the first time.
fontFamily | The name of the font family. |
fileName | The path to the TTF file containing the font family. |
Definition at line 387 of file FontLibrary.cs.
void VectSharp.SimpleFontLibrary.Add | ( | string | fontFamilyName, |
FontFamily | fontFamily | ||
) |
Add the specified font family to the library with the specified name.
fontFamilyName | The name of the font family. |
fontFamily | The font family to add. |
Definition at line 343 of file FontLibrary.cs.
|
virtual |
Create a new font family from the specified standard font family name.
standardFontFamily | The standard name of the font family. |
Implements VectSharp.FontLibrary.
Definition at line 394 of file FontLibrary.cs.
|
virtual |
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.
fontFamily | The name of the font family to create, or the path to a TTF file. |
Implements VectSharp.FontLibrary.
Definition at line 400 of file FontLibrary.cs.