This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy at the same URL with .md appended. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

FontPreload Pennington.Infrastructure

Represents a font file to preload via a link rel="preload" hint in the HTML head.

Properties

Href string
The URL path to the font file (e.g., "fonts/lexend.woff2").
Type string
The MIME type of the font file. Defaults to "font/woff2".

Constructors

FontPreload

#
public FontPreload(string Href, string Type = "font/woff2")

Represents a font file to preload via a link rel="preload" hint in the HTML head.

Parameters

Href string
The URL path to the font file (e.g., "fonts/lexend.woff2").
Type string
The MIME type of the font file. Defaults to "font/woff2".

Pennington.Infrastructure.FontPreload

namespace Pennington.Infrastructure;

/// Represents a font file to preload via a link rel="preload" hint in the HTML head.
public record FontPreload
{
    /// Represents a font file to preload via a link rel="preload" hint in the HTML head.
    
public FontPreload(string Href, string Type = "font/woff2")
; /// The URL path to the font file (e.g., "fonts/lexend.woff2").
public string Href { get; set; }
/// The MIME type of the font file. Defaults to "font/woff2".
public string Type { get; set; }
}