Interface IFontResolver2
Provides functionality that converts a requested typeface into a physical font.
public interface IFontResolver2 : IFontResolverMarker
Methods
GetFont(string)
Gets the bytes of a physical font with specified face name.
ReadOnlyMemory<byte> GetFont(string faceName)
Parameters
faceName
stringA face name previously retrieved by ResolveTypeface.
Returns
ResolveTypeface(string, XFontStyle, XFontWeight, XFontStretch)
Converts specified information about a required typeface into a specific font.
FontResolverInfo? ResolveTypeface(string familyName, XFontStyle style, XFontWeight weight, XFontStretch stretch)
Parameters
familyName
stringThe font family of the typeface.
style
XFontStyleThe style of the typeface.
weight
XFontWeightThe relative weight of the typeface.
stretch
XFontStretchThe degree to which the typeface is stretched.
Returns
- FontResolverInfo
Information about the physical font, or null if the request cannot be satisfied.