This site provides a machine-readable index at /llms.txt.

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
Default: "font/woff2"
The MIME type of the font file. Defaults to "font/woff2".

Constructors

.ctor

#
public record 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 (optional)
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 record FontPreload(string Href, string Type = "font/woff2");
/// The URL path to the font file (e.g., "fonts/lexend.woff2").
string Href
; /// The MIME type of the font file. Defaults to "font/woff2".
string Type = "font/woff2"
}