Table of Contents

Property UseWindowsFontsUnderWsl2

Namespace
PdfSharp.Fonts
Assembly
PdfSharp.dll

UseWindowsFontsUnderWsl2

Gets or sets a value that defines what to do if the Core build of PDFsharp runs under WSL2. If true, PDFsharp uses the build-in WindowsPlatformFontResolver to resolve some standards fonts like Arial or Times New Roman if the code runs under WSL2. If false, which is default, you must provide your own custom font resolver. We recommend to use always a custom font resolver for a PDFsharp Core build.

public static bool UseWindowsFontsUnderWsl2 { get; set; }

Property Value

bool