PDFsharp-net6

XPrivateFontCollection

Namespace: PdfSharp.Drawing

Makes fonts that are not installed on the system available within the current application domain.

public sealed class XPrivateFontCollection

Inheritance ObjectXPrivateFontCollection

Methods

AddFont(String)

Caution

Use the GDI build of PDFsharp and use Add(Stream stream)


Adds the specified font data to the global PrivateFontCollection. Family name and style are automatically retrieved from the font.

public static void AddFont(string filename)

Parameters

filename String

AddFont(Stream, String)

Caution

Use the GDI build of PDFsharp and use Add(Stream stream)


Adds the specified font data to the global PrivateFontCollection. Family name and style are automatically retrieved from the font.

public static void AddFont(Stream stream, string facename)

Parameters

stream Stream

facename String

TryCreateTypeface(String, XFontStyleEx, XFontFamily&)

internal static XTypeface TryCreateTypeface(string name, XFontStyleEx style, XFontFamily& fontFamily)

Parameters

name String

style XFontStyleEx

fontFamily XFontFamily&

Returns

XTypeface