[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.FontCollection

FontCollection Class

Represents a collection of Font objects.

Inheritance
FontCollection
Namespace: GrapeCity.Documents.Text
Assembly: DS.Documents.Imaging.dll
Syntax
public class FontCollection : Collection<Font>, IList, ICollection, IReadOnlyList<Font>, IReadOnlyCollection<Font>, IFontCollection, IList<Font>, ICollection<Font>, IEnumerable<Font>, IEnumerable
Public Class FontCollection
    Inherits Collection(Of Font)
    Implements IList, ICollection, IReadOnlyList(Of Font), IReadOnlyCollection(Of Font), IFontCollection, IList(Of Font), ICollection(Of Font), IEnumerable(Of Font), IEnumerable

Constructors

Name Description
FontCollection()

Initializes a new instance of the FontCollection class.

Properties

Name Description
DefaultFont

Gets or sets the default font.

SyncRoot

Gets an object that can be used to synchronize access to the FontCollection.

SystemFonts

Gets the collection of system fonts.

Methods

Name Description
AppendFallbackFontFamilies(params string[])

Appends one or more font family names to the internal list of fallback font families.

AppendFallbackFonts(params Font[])

Appends one or more fonts to the internal fallback font list.

AppendFonts(IList<Font>, bool)

Appends fonts from the specified list to the collection.

ChooseFallbackFont(int, Font, bool, bool, bool, bool, bool)

Searches for a fallback font containing the given code point that looks similar to the source font.

ClearFallbackFontFamilies()

Clears the internal list of fallback font families.

ClearFallbackFonts()

Clears the internal list of fallback fonts.

ClearItems()

Removes all elements from the FontCollection.

Clone()

Creates a copy of the current FontCollection.

FindFamilyName(string, bool, bool)

Searches for a font with the specified family name and style.

FindFamilyName(string[], bool, bool)

Searches for a font from the set of allowable font family names and the specified style.

FindFileName(string)

Searches for the first font having the specified file name.

FindFontPath(string)

Searches for the first font having the specified font path.

FindFullName(string)

Searches for the first font with specified full name.

Full font name that reflects all family and relevant subfamily descriptors.

GetFallbackFontFamilies()

Gets a snapshot of the internal list of fallback font families.

GetFallbackFonts()

Gets a snapshot of the internal fallback font list.

InsertItem(int, Font)

Inserts an element into the FontCollection at the specified index.

LoadFonts(byte[], bool)

Loads all fonts from a specified byte array into the collection.

Use the RegisterFont(string, bool) method if there is a font file.

LoadFonts(Stream, int, bool)

Loads all fonts from the specified stream into the collection.

Use the RegisterFont(string, bool) method if there is a font file.

RegisterDirectory(string, bool)

Appends all fonts (*.ttf, *.otf, *.ttc files) from the specified folder to the FontCollection.

RegisterFont(string, bool)

Appends all fonts from the specified font file to the collection.

RemoveFallbackFontFamilies(params string[])

Removes one or more font family names from the internal list of fallback font families.

RemoveFallbackFonts(params Font[])

Removes one or more fonts from the internal fallback font list.

RemoveItem(int)

Removes the element at the specified index of the FontCollection.

SelectByFamilyName(string)

Returns the list of fonts with the specified family name.

SelectByFamilyName(string, List<Font>)

Collects the fonts with the specified family name.

SelectByFileName(string)

Returns the list of fonts having the same specified file name.

SelectByFileName(string, List<Font>)

Collects the fonts having the same specified file name.

SelectByFontPath(string)

Returns the list of fonts having the same specified font path.

SelectByFontPath(string, List<Font>)

Collects the fonts having the same specified font path.

SelectByFullName(string)

Returns the list of fonts with the specified full name.

Full font name that reflects all family and relevant subfamily descriptors.

SelectByFullName(string, List<Font>)

Collects the fonts with the specified full name.

Full font name that reflects all family and relevant subfamily descriptors.

SelectByTypographicFamilyName(string)

Returns the list of fonts with the specified typographic family name.

The typographic family grouping doesn't impose any constraints on the number of faces within it, in contrast with the 4-style family grouping.

SelectByTypographicFamilyName(string, List<Font>)

Collects the fonts with the specified typographic family name.

The typographic family grouping doesn't impose any constraints on the number of faces within it, in contrast with the 4-style family grouping.

SetItem(int, Font)

Replaces the element at the specified index.