Interface IFontResolver
Provides functionality that converts a requested typeface into a physical font.
public interface IFontResolver : IFontResolverMarker
Methods
GetFont(string)
Gets the bytes of a physical font with specified face name.
byte[]? GetFont(string faceName)
Parameters
faceNamestringA face name previously retrieved by ResolveTypeface.
Returns
- byte[]
ResolveTypeface(string, bool, bool)
Converts specified information about a required typeface into a specific font.
FontResolverInfo? ResolveTypeface(string familyName, bool bold, bool italic)
Parameters
familyNamestringName of the font family.
boldboolSet to
truewhen a bold font face is required.italicboolSet to
truewhen an italic font face is required.
Returns
- FontResolverInfo
Information about the physical font, or null if the request cannot be satisfied.