Namespace: PdfSharp.Drawing
Makes fonts that are not installed on the system available within the current application domain.
public sealed class XPrivateFontCollection
Inheritance Object → XPrivateFontCollection
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)
filename String
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)
stream Stream
facename String
internal static XTypeface TryCreateTypeface(string name, XFontStyleEx style, XFontFamily& fontFamily)
name String
style XFontStyleEx
fontFamily XFontFamily&