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 HierarchySystemObject
ExpertPdf.Anywhere.DrawingSystemFonts
Namespace: ExpertPdf.Anywhere.DrawingAssembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntaxpublic static class SystemFonts
Public NotInheritable Class SystemFonts
The SystemFonts type exposes the following members.
Properties| | Name | Description |
|---|
  | InstalledFamilies |
Gets the names of the font families installed on the host, sorted, each once.
|
Top
Methods| | Name | Description |
|---|
  | IsFamilyInstalled |
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.
Exampleif (!SystemFonts.IsFamilyInstalled("Segoe UI"))
System.Console.WriteLine("Segoe UI is not installed; " + SystemFonts.InstalledFamilies.Count + " families are.");If Not SystemFonts.IsFamilyInstalled("Segoe UI") Then
System.Console.WriteLine("Segoe UI is not installed; " & SystemFonts.InstalledFamilies.Count & " families are.")
End If
See Also