Click or drag to resize

SystemFonts Class

The font families installed on the host, on Windows, Linux and macOS: the families a system font can be created from (Font, Document.AddFont).
Inheritance Hierarchy
SystemObject
  ExpertPdf.Anywhere.DrawingSystemFonts

Namespace: ExpertPdf.Anywhere.Drawing
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public static class SystemFonts

The SystemFonts type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberInstalledFamilies Gets the names of the font families installed on the host, sorted, each once.
Top
Methods
 NameDescription
Public methodStatic memberIsFamilyInstalled Gets whether a font family is installed on the host (the comparison ignores case).
Top
Remarks
The list includes the families the library bundles (Liberation Sans, Liberation Serif, Liberation Mono, metric compatible with Arial, Times New Roman and Courier New), which are always available, and the fonts in a fonts folder beside the application. It is read once per process.
Example
if (!SystemFonts.IsFamilyInstalled("Segoe UI"))
    System.Console.WriteLine("Segoe UI is not installed; " + SystemFonts.InstalledFamilies.Count + " families are.");
See Also