PDFsharp-net6

IFontResolver

Namespace: PdfSharp.Fonts

Provides functionality that converts a requested typeface into a physical font.

public interface IFontResolver : IFontResolverMarker

Implements IFontResolverMarker

Methods

ResolveTypeface(String, Boolean, Boolean)

Converts specified information about a required typeface into a specific font.

FontResolverInfo ResolveTypeface(string familyName, bool isBold, bool isItalic)

Parameters

familyName String
Name of the font family.

isBold Boolean
Set to true when a bold fontface is required.

isItalic Boolean
Set to true when an italic fontface is required.

Returns

FontResolverInfo
Information about the physical font, or null if the request cannot be satisfied.

GetFont(String)

Gets the bytes of a physical font with specified face name.

Byte[] GetFont(string faceName)

Parameters

faceName String
A face name previously retrieved by ResolveTypeface.

Returns

Byte[]