List all installed Font Families on a Windows Server using C# code

Programming, error messages and sample code > ASP.NET
<%@ Page Language="C#" AutoEventWireup="true" %>

<%@ Import Namespace="System.Drawing" %>
<%@ Import Namespace="System.Drawing.Text" %>

<script runat="server">
    protected void Page_Load(object sender, EventArgs e)
        FontFamily[] families = new InstalledFontCollection().Families;

        ListView1.DataSource = families;

        Label1.Text = $"All Font Families installed on the server: {Environment.MachineName}";

<!DOCTYPE html>

<html xmlns="">
<head runat="server">
    <title>Installed Fonts</title>
    <form id="form1" runat="server">
            <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
                <asp:ListView ID="ListView1" runat="server" ItemType="FontFamily">
Note, installing a new Font on a Windows server may not reflect till recycling the application pool (for .net web applications), restarting the service (for Windows service-based apps). Rebooting OS directly will not help in few scenarios.