[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.IFontCollection

Interface IFontCollection

Namespace
GrapeCity.Documents.Text
Assembly
GcDocs.Imaging.dll

Common members of the FontCollection and SystemFontCollection.

public interface IFontCollection : IList<Font>, ICollection<Font>, IEnumerable<Font>, IEnumerable
Inherited Members
System.Collections.Generic.IList<GrapeCity.Documents.Text.Font>.IndexOf(GrapeCity.Documents.Text.Font)
System.Collections.Generic.IList<GrapeCity.Documents.Text.Font>.Insert(int, GrapeCity.Documents.Text.Font)
System.Collections.Generic.IList<GrapeCity.Documents.Text.Font>.RemoveAt(int)
System.Collections.Generic.IList<GrapeCity.Documents.Text.Font>.this[int]
System.Collections.Generic.ICollection<GrapeCity.Documents.Text.Font>.Add(GrapeCity.Documents.Text.Font)
System.Collections.Generic.ICollection<GrapeCity.Documents.Text.Font>.Clear()
System.Collections.Generic.ICollection<GrapeCity.Documents.Text.Font>.Contains(GrapeCity.Documents.Text.Font)
System.Collections.Generic.ICollection<GrapeCity.Documents.Text.Font>.CopyTo(GrapeCity.Documents.Text.Font[], int)
System.Collections.Generic.ICollection<GrapeCity.Documents.Text.Font>.Remove(GrapeCity.Documents.Text.Font)
System.Collections.Generic.ICollection<GrapeCity.Documents.Text.Font>.Count
System.Collections.Generic.ICollection<GrapeCity.Documents.Text.Font>.IsReadOnly
System.Collections.Generic.IEnumerable<GrapeCity.Documents.Text.Font>.GetEnumerator()

Properties

DefaultFont

Gets or sets the default system font.

Font DefaultFont { get; set; }

Property Value

Font

Methods

AppendFallbackFontFamilies(params string[])

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

void AppendFallbackFontFamilies(params string[] fontFamilyNames)

Parameters

fontFamilyNames string[]

AppendFallbackFonts(params Font[])

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

void AppendFallbackFonts(params Font[] fonts)

Parameters

fonts Font[]

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.

Font ChooseFallbackFont(int codePoint, Font baseFont, bool bold, bool italic, bool vertical = false, bool embeddable = false, bool allowEudc = false)

Parameters

codePoint int

The code point (in UTF-32 format) missing in the source font.

baseFont Font

The source font to be replaced by a fallback font.

bold bool

Indicates if the font should be embolded.

italic bool

Indicates if the font should contain italic characters.

vertical bool

Indicates if the font should be vertical.

embeddable bool

Indicates if the searched font should support embedding.

allowEudc bool

Indicates if the linked EUDC fonts can be searched as well.

Returns

Font

Fallback Font or null.

ClearFallbackFontFamilies()

Clears the internal list of fallback font families.

void ClearFallbackFontFamilies()

ClearFallbackFonts()

Clears the internal list of fallback fonts.

void ClearFallbackFonts()

FindFamilyName(string, bool, bool)

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

Font FindFamilyName(string fontFamilyName, bool bold = false, bool italic = false)

Parameters

fontFamilyName string

The font family name. Up to four fonts can share the same font family name.

bold bool

Indicates if the font should be embolded.

italic bool

Indicates if the font should contain Italic characters.

Returns

Font

The corresponding Font or null.

FindFamilyName(string[], bool, bool)

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

Font FindFamilyName(string[] fontFamilyNames, bool bold = false, bool italic = false)

Parameters

fontFamilyNames string[]

The array of allowable font family name.

bold bool

Indicates if the font should be embolded.

italic bool

Indicates if the font should contain Italic characters.

Returns

Font

The corresponding Font or null.

FindFileName(string)

Searches for the first font having the specified file name.

Font FindFileName(string fontFileName)

Parameters

fontFileName string

Returns

Font

FindFontPath(string)

Searches for the first font having the specified font path.

Font FindFontPath(string fontPath)

Parameters

fontPath string

Returns

Font

FindFullName(string)

Searches for the first font with specified full name.

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

Font FindFullName(string fullFontName)

Parameters

fullFontName string

Returns

Font

GetFallbackFontFamilies()

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

string[] GetFallbackFontFamilies()

Returns

string[]

GetFallbackFonts()

Gets a snapshot of the internal fallback font list.

Font[] GetFallbackFonts()

Returns

Font[]

RemoveFallbackFontFamilies(params string[])

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

void RemoveFallbackFontFamilies(params string[] fontFamilyNames)

Parameters

fontFamilyNames string[]

RemoveFallbackFonts(params Font[])

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

void RemoveFallbackFonts(params Font[] fonts)

Parameters

fonts Font[]

SelectByFamilyName(string, List<Font>)

Collects the fonts with the specified family name.

void SelectByFamilyName(string fontFamilyName, List<Font> res)

Parameters

fontFamilyName string
res System.Collections.Generic.List<T><Font>

SelectByFamilyName(string)

Returns the list of fonts with the specified family name.

List<Font> SelectByFamilyName(string fontFamilyName)

Parameters

fontFamilyName string

Returns

System.Collections.Generic.List<T><Font>

SelectByFileName(string, List<Font>)

Collects the fonts having the same specified file name.

void SelectByFileName(string fontFileName, List<Font> res)

Parameters

fontFileName string
res System.Collections.Generic.List<T><Font>

SelectByFileName(string)

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

List<Font> SelectByFileName(string fontFileName)

Parameters

fontFileName string

Returns

System.Collections.Generic.List<T><Font>

SelectByFontPath(string, List<Font>)

Collects the fonts having the same specified font path.

void SelectByFontPath(string fontPath, List<Font> res)

Parameters

fontPath string
res System.Collections.Generic.List<T><Font>

SelectByFontPath(string)

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

List<Font> SelectByFontPath(string fontPath)

Parameters

fontPath string

Returns

System.Collections.Generic.List<T><Font>

SelectByFullName(string, List<Font>)

Collects the fonts with the specified full name.

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

void SelectByFullName(string fullFontName, List<Font> res)

Parameters

fullFontName string
res System.Collections.Generic.List<T><Font>

SelectByFullName(string)

Returns the list of fonts with the specified full name.

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

List<Font> SelectByFullName(string fullFontName)

Parameters

fullFontName string

Returns

System.Collections.Generic.List<T><Font>

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.

void SelectByTypographicFamilyName(string typographicFamilyName, List<Font> res)

Parameters

typographicFamilyName string
res System.Collections.Generic.List<T><Font>

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.

List<Font> SelectByTypographicFamilyName(string typographicFamilyName)

Parameters

typographicFamilyName string

Returns

System.Collections.Generic.List<T><Font>