VectSharp 2.6.1
A light library for C# vector graphics
|
Represents a FontFamily created from a resource stream. More...
Public Member Functions | |
ResourceFontFamily (System.IO.Stream resourceStream, string resourceName) | |
Create a new ResourceFontFamily from the specified resourceStream containing a TTF file, passing the specified resourceName to the More... | |
Public Member Functions inherited from VectSharp.FontFamily | |
FontFamily (string fileName) | |
Create a new FontFamily. More... | |
FontFamily (Stream ttfStream) | |
Create a new FontFamily. More... | |
FontFamily (TrueTypeFile ttf) | |
Create a new FontFamily. More... | |
FontFamily (StandardFontFamilies standardFontFamily) | |
Create a new standard FontFamily. More... | |
Public Attributes | |
string | ResourceName |
The name of the embedded resource, which will be parsed using More... | |
Additional Inherited Members | |
Public Types inherited from VectSharp.FontFamily | |
enum | StandardFontFamilies |
The 14 standard font families. More... | |
Static Public Member Functions inherited from VectSharp.FontFamily | |
static 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. Equivalent to DefaultFontLibrary.ResolveFontFamily. More... | |
static FontFamily | ResolveFontFamily (StandardFontFamilies standardFontFamily) |
Create a new font family from the specified standard font family name. Equivalent to DefaultFontLibrary.ResolveFontFamily. More... | |
static 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. Equivalent to DefaultFontLibrary.ResolveFontFamily. More... | |
static FontFamily | ResolveFontFamily (string 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 . Equivalent to DefaultFontLibrary.ResolveFontFamily. More... | |
Static Public Attributes inherited from VectSharp.FontFamily | |
static string[] | StandardFamilies = new string[] { "Times-Roman", "Times-Bold", "Times-Italic", "Times-BoldItalic", "Helvetica", "Helvetica-Bold", "Helvetica-Oblique", "Helvetica-BoldOblique", "Courier", "Courier-Bold", "Courier-Oblique", "Courier-BoldOblique", "Symbol", "ZapfDingbats" } |
The names of the 14 standard families that are guaranteed to be displayed correctly. More... | |
static string[] | StandardFontFamilyResources |
The names of the resource streams pointing to the included TrueType font files for each of the standard 14 font families. More... | |
Properties inherited from VectSharp.FontFamily | |
static IFontLibrary | DefaultFontLibrary = new DefaultFontLibrary() [get, set] |
The default font library used to resolve font family names. More... | |
bool | IsStandardFamily [get] |
Whether this is one of the 14 standard font families or not. More... | |
string | FileName [get] |
Full path to the TrueType font file for this font family (or, if this is a standard font family, name of the font family). More... | |
string | FamilyName [get] |
Name of the font family, including any variantes. More... | |
TrueTypeFile | TrueTypeFile [get] |
Parsed TrueType font file for this font family. See also:
. More... | |
bool | IsBold [get] |
Whether this font is bold or not. This is set based on the information included in the OS/2 table of the TrueType file. More... | |
bool | IsItalic [get] |
Whether this font is italic or oblique or not. This is set based on the information included in the OS/2 table of the TrueType file. More... | |
bool | IsOblique [get] |
Whether this font is oblique or not. This is set based on the information included in the OS/2 table of the TrueType file. More... | |
Represents a FontFamily created from a resource stream.
VectSharp.ResourceFontFamily.ResourceFontFamily | ( | System.IO.Stream | resourceStream, |
string | resourceName | ||
) |
Create a new ResourceFontFamily from the specified resourceStream containing a TTF file, passing the specified resourceName to the
Avalonia.Media.FontFamily.Parse(string, Uri)"</code> method.
</summary>
<param name="resourceStream">A resource stream containing a TTF file.</param>
<param name="resourceName">The name of the embedded resource, which will be parsed using
Avalonia.Media.FontFamily.Parse(string, Uri)
.
string VectSharp.ResourceFontFamily.ResourceName |