Class FontMatcher

Class FontMatcher

Namespace: Aspose.Html.Rendering.Fonts
Assembly: Aspose.HTML.dll (25.2.0)

This class allows you to control some parts of the font matching algorithm.

[ComVisible(true)]
public abstract class FontMatcher

Inheritance

objectFontMatcher

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

FontMatcher()

protected FontMatcher()

Methods

MatchFontFallback(FontMatchingProperties, uint)

This method is called if there is no appropriate font found in the fonts lookup folders. It should return true type font based on the fontMatchingProperties which can render charCode, or null if such font is not available.

public abstract byte[] MatchFontFallback(FontMatchingProperties fontMatchingProperties, uint charCode)

Parameters

fontMatchingProperties FontMatchingProperties

Properties of the matched font.

charCode uint

Code of the character which will be rendered using the matched font.

Returns

byte[]

A byte array containing the fonts data or null.