Interface IFontCollection
A readable and writable collection of fonts.
Inherited Members
Namespace: SixLabors.Fonts
Assembly: SixLabors.Fonts.dll
Syntax
public interface IFontCollection : IReadOnlyFontCollectionMethods
| Improve this Doc View SourceAdd(Stream)
Adds a font to the collection.
Declaration
FontFamily Add(Stream stream)Parameters
| Type | Name | Description | 
|---|---|---|
| Stream | stream | The font stream. | 
Returns
| Type | Description | 
|---|---|
| FontFamily | The new FontFamily. | 
Add(Stream, out FontDescription)
Adds a font to the collection.
Declaration
FontFamily Add(Stream stream, out FontDescription description)Parameters
| Type | Name | Description | 
|---|---|---|
| Stream | stream | The font stream. | 
| FontDescription | description | The description of the added font. | 
Returns
| Type | Description | 
|---|---|
| FontFamily | The new FontFamily. | 
Add(Stream, CultureInfo)
Adds a font to the collection.
Declaration
FontFamily Add(Stream stream, CultureInfo culture)Parameters
| Type | Name | Description | 
|---|---|---|
| Stream | stream | The font stream. | 
| CultureInfo | culture | The culture of the font to add. | 
Returns
| Type | Description | 
|---|---|
| FontFamily | The new FontFamily. | 
Add(Stream, CultureInfo, out FontDescription)
Adds a font to the collection.
Declaration
FontFamily Add(Stream stream, CultureInfo culture, out FontDescription description)Parameters
| Type | Name | Description | 
|---|---|---|
| Stream | stream | The font stream. | 
| CultureInfo | culture | The culture of the font to add. | 
| FontDescription | description | The description of the added font. | 
Returns
| Type | Description | 
|---|---|
| FontFamily | The new FontFamily. | 
Add(String)
Adds a font to the collection.
Declaration
FontFamily Add(string path)Parameters
| Type | Name | Description | 
|---|---|---|
| String | path | The filesystem path to the font file. | 
Returns
| Type | Description | 
|---|---|
| FontFamily | The new FontFamily. | 
Add(String, out FontDescription)
Adds a font to the collection.
Declaration
FontFamily Add(string path, out FontDescription description)Parameters
| Type | Name | Description | 
|---|---|---|
| String | path | The filesystem path to the font file. | 
| FontDescription | description | The description of the added font. | 
Returns
| Type | Description | 
|---|---|
| FontFamily | The new FontFamily. | 
Add(String, CultureInfo)
Adds a font to the collection.
Declaration
FontFamily Add(string path, CultureInfo culture)Parameters
| Type | Name | Description | 
|---|---|---|
| String | path | The filesystem path to the font file. | 
| CultureInfo | culture | The culture of the font to add. | 
Returns
| Type | Description | 
|---|---|
| FontFamily | The new FontFamily. | 
Add(String, CultureInfo, out FontDescription)
Adds a font to the collection.
Declaration
FontFamily Add(string path, CultureInfo culture, out FontDescription description)Parameters
| Type | Name | Description | 
|---|---|---|
| String | path | The filesystem path to the font file. | 
| CultureInfo | culture | The culture of the font to add. | 
| FontDescription | description | The description of the added font. | 
Returns
| Type | Description | 
|---|---|
| FontFamily | The new FontFamily. | 
AddCollection(Stream)
Adds a true type font collection (.ttc).
Declaration
IEnumerable<FontFamily> AddCollection(Stream stream)Parameters
| Type | Name | Description | 
|---|---|---|
| Stream | stream | The font stream. | 
Returns
| Type | Description | 
|---|---|
| IEnumerable<FontFamily> | The new IEnumerable<T>. | 
AddCollection(Stream, out IEnumerable<FontDescription>)
Adds a true type font collection (.ttc).
Declaration
IEnumerable<FontFamily> AddCollection(Stream stream, out IEnumerable<FontDescription> descriptions)Parameters
| Type | Name | Description | 
|---|---|---|
| Stream | stream | The font stream. | 
| IEnumerable<FontDescription> | descriptions | The descriptions of the added fonts. | 
Returns
| Type | Description | 
|---|---|
| IEnumerable<FontFamily> | The new IEnumerable<T>. | 
AddCollection(Stream, CultureInfo)
Adds a true type font collection (.ttc).
Declaration
IEnumerable<FontFamily> AddCollection(Stream stream, CultureInfo culture)Parameters
| Type | Name | Description | 
|---|---|---|
| Stream | stream | The font stream. | 
| CultureInfo | culture | The culture of the fonts to add. | 
Returns
| Type | Description | 
|---|---|
| IEnumerable<FontFamily> | The new IEnumerable<T>. | 
AddCollection(Stream, CultureInfo, out IEnumerable<FontDescription>)
Adds a true type font collection (.ttc).
Declaration
IEnumerable<FontFamily> AddCollection(Stream stream, CultureInfo culture, out IEnumerable<FontDescription> descriptions)Parameters
| Type | Name | Description | 
|---|---|---|
| Stream | stream | The font stream. | 
| CultureInfo | culture | The culture of the fonts to add. | 
| IEnumerable<FontDescription> | descriptions | The descriptions of the added fonts. | 
Returns
| Type | Description | 
|---|---|
| IEnumerable<FontFamily> | The new IEnumerable<T>. | 
AddCollection(String)
Adds a true type font collection (.ttc).
Declaration
IEnumerable<FontFamily> AddCollection(string path)Parameters
| Type | Name | Description | 
|---|---|---|
| String | path | The font collection path. | 
Returns
| Type | Description | 
|---|---|
| IEnumerable<FontFamily> | The new IEnumerable<T>. | 
AddCollection(String, out IEnumerable<FontDescription>)
Adds a true type font collection (.ttc).
Declaration
IEnumerable<FontFamily> AddCollection(string path, out IEnumerable<FontDescription> descriptions)Parameters
| Type | Name | Description | 
|---|---|---|
| String | path | The font collection path. | 
| IEnumerable<FontDescription> | descriptions | The descriptions of the added fonts. | 
Returns
| Type | Description | 
|---|---|
| IEnumerable<FontFamily> | The new IEnumerable<T>. | 
AddCollection(String, CultureInfo)
Adds a true type font collection (.ttc).
Declaration
IEnumerable<FontFamily> AddCollection(string path, CultureInfo culture)Parameters
| Type | Name | Description | 
|---|---|---|
| String | path | The font collection path. | 
| CultureInfo | culture | The culture of the fonts to add. | 
Returns
| Type | Description | 
|---|---|
| IEnumerable<FontFamily> | The new IEnumerable<T>. | 
AddCollection(String, CultureInfo, out IEnumerable<FontDescription>)
Adds a true type font collection (.ttc).
Declaration
IEnumerable<FontFamily> AddCollection(string path, CultureInfo culture, out IEnumerable<FontDescription> descriptions)Parameters
| Type | Name | Description | 
|---|---|---|
| String | path | The font collection path. | 
| CultureInfo | culture | The culture of the fonts to add. | 
| IEnumerable<FontDescription> | descriptions | The descriptions of the added fonts. | 
Returns
| Type | Description | 
|---|---|
| IEnumerable<FontFamily> | The new IEnumerable<T>. |