FontPreload
Pennington.Infrastructure
Represents a font file to preload via a link rel="preload" hint in the HTML head.
Properties
Hrefstring- The URL path to the font file (e.g., "fonts/lexend.woff2").
Typestring- 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
Hrefstring- The URL path to the font file (e.g., "fonts/lexend.
woff2"). Typestring- 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; }
}