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- 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
Hrefstring- The URL path to the font file (e.g., "fonts/lexend.woff2").
Typestring (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"
}