Table of Contents

Interface IFontCollection

Namespace
SixLabors.Fonts
Assembly
SixLabors.Fonts.dll

A readable and writable collection of fonts.

public interface IFontCollection : IReadOnlyFontCollection
Inherited Members

Methods

Add(Stream)

Adds a font to the collection.

FontFamily Add(Stream stream)

Parameters

stream Stream

The font stream.

Returns

FontFamily

The new FontFamily.

Add(Stream, out FontDescription)

Adds a font to the collection.

FontFamily Add(Stream stream, out FontDescription description)

Parameters

stream Stream

The font stream.

description FontDescription

The description of the added font.

Returns

FontFamily

The new FontFamily.

Add(string)

Adds a font to the collection.

FontFamily Add(string path)

Parameters

path string

The filesystem path to the font file.

Returns

FontFamily

The new FontFamily.

Add(string, out FontDescription)

Adds a font to the collection.

FontFamily Add(string path, out FontDescription description)

Parameters

path string

The filesystem path to the font file.

description FontDescription

The description of the added font.

Returns

FontFamily

The new FontFamily.

AddCollection(Stream)

Adds a true type font collection (.ttc).

ReadOnlyMemory<FontFamily> AddCollection(Stream stream)

Parameters

stream Stream

The font stream.

Returns

ReadOnlyMemory<FontFamily>

A read-only memory region containing the new FontFamily values.

AddCollection(Stream, CultureInfo)

Adds a true type font collection (.ttc).

ReadOnlyMemory<FontFamily> AddCollection(Stream stream, CultureInfo culture)

Parameters

stream Stream

The font stream.

culture CultureInfo

The culture of the fonts to add.

Returns

ReadOnlyMemory<FontFamily>

A read-only memory region containing the new FontFamily values.

AddCollection(Stream, CultureInfo, out ReadOnlyMemory<FontDescription>)

Adds a true type font collection (.ttc).

ReadOnlyMemory<FontFamily> AddCollection(Stream stream, CultureInfo culture, out ReadOnlyMemory<FontDescription> descriptions)

Parameters

stream Stream

The font stream.

culture CultureInfo

The culture of the fonts to add.

descriptions ReadOnlyMemory<FontDescription>

The descriptions of the added fonts.

Returns

ReadOnlyMemory<FontFamily>

A read-only memory region containing the new FontFamily values.

AddCollection(Stream, out ReadOnlyMemory<FontDescription>)

Adds a true type font collection (.ttc).

ReadOnlyMemory<FontFamily> AddCollection(Stream stream, out ReadOnlyMemory<FontDescription> descriptions)

Parameters

stream Stream

The font stream.

descriptions ReadOnlyMemory<FontDescription>

The descriptions of the added fonts.

Returns

ReadOnlyMemory<FontFamily>

A read-only memory region containing the new FontFamily values.

AddCollection(string)

Adds a true type font collection (.ttc).

ReadOnlyMemory<FontFamily> AddCollection(string path)

Parameters

path string

The font collection path.

Returns

ReadOnlyMemory<FontFamily>

A read-only memory region containing the new FontFamily values.

AddCollection(string, CultureInfo)

Adds a true type font collection (.ttc).

ReadOnlyMemory<FontFamily> AddCollection(string path, CultureInfo culture)

Parameters

path string

The font collection path.

culture CultureInfo

The culture of the fonts to add.

Returns

ReadOnlyMemory<FontFamily>

A read-only memory region containing the new FontFamily values.

AddCollection(string, CultureInfo, out ReadOnlyMemory<FontDescription>)

Adds a true type font collection (.ttc).

ReadOnlyMemory<FontFamily> AddCollection(string path, CultureInfo culture, out ReadOnlyMemory<FontDescription> descriptions)

Parameters

path string

The font collection path.

culture CultureInfo

The culture of the fonts to add.

descriptions ReadOnlyMemory<FontDescription>

The descriptions of the added fonts.

Returns

ReadOnlyMemory<FontFamily>

A read-only memory region containing the new FontFamily values.

AddCollection(string, out ReadOnlyMemory<FontDescription>)

Adds a true type font collection (.ttc).

ReadOnlyMemory<FontFamily> AddCollection(string path, out ReadOnlyMemory<FontDescription> descriptions)

Parameters

path string

The font collection path.

descriptions ReadOnlyMemory<FontDescription>

The descriptions of the added fonts.

Returns

ReadOnlyMemory<FontFamily>

A read-only memory region containing the new FontFamily values.

AddWithCulture(Stream, CultureInfo)

Adds a font to the collection.

FontFamily AddWithCulture(Stream stream, CultureInfo culture)

Parameters

stream Stream

The font stream.

culture CultureInfo

The culture of the font to add.

Returns

FontFamily

The new FontFamily.

AddWithCulture(Stream, CultureInfo, out FontDescription)

Adds a font to the collection.

FontFamily AddWithCulture(Stream stream, CultureInfo culture, out FontDescription description)

Parameters

stream Stream

The font stream.

culture CultureInfo

The culture of the font to add.

description FontDescription

The description of the added font.

Returns

FontFamily

The new FontFamily.

AddWithCulture(string, CultureInfo)

Adds a font to the collection.

FontFamily AddWithCulture(string path, CultureInfo culture)

Parameters

path string

The filesystem path to the font file.

culture CultureInfo

The culture of the font to add.

Returns

FontFamily

The new FontFamily.

AddWithCulture(string, CultureInfo, out FontDescription)

Adds a font to the collection.

FontFamily AddWithCulture(string path, CultureInfo culture, out FontDescription description)

Parameters

path string

The filesystem path to the font file.

culture CultureInfo

The culture of the font to add.

description FontDescription

The description of the added font.

Returns

FontFamily

The new FontFamily.

See Also