Table of Contents

Method ResolveTypeface

Namespace
PdfSharp.Fonts
Assembly
PdfSharp.dll

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 string

The font family of the typeface.

style XFontStyle

The style of the typeface.

weight XFontWeight

The relative weight of the typeface.

stretch XFontStretch

The degree to which the typeface is stretched.

Returns

FontResolverInfo

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