Table of Contents

Interface IFontResolver

Namespace
PdfSharp.Fonts
Assembly
PdfSharp.dll

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 string

A 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 string

Name of the font family.

bold bool

Set to true when a bold font face is required.

italic bool

Set to true when an italic font face is required.

Returns

FontResolverInfo

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