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
faceName
stringA 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
familyName
stringName of the font family.
bold
boolSet to
true
when a bold font face is required.italic
boolSet to
true
when an italic font face is required.
Returns
- FontResolverInfo
Information about the physical font, or null if the request cannot be satisfied.