Quote font URLs in HTML preamble to avoid issues

pull/1003/head
Tyrrrz 2 years ago
parent 0e1c3e4c76
commit f36852a1a2

@ -41,70 +41,70 @@
@{/* Styling */} @{/* Styling */}
<style> <style>
@@font-face { @@font-face {
src: url(@await ResolveAssetUrlAsync(GetFontUrl("normal", 400))); src: url("@await ResolveAssetUrlAsync(GetFontUrl("normal", 400))");
font-family: gg sans; font-family: gg sans;
font-weight: 400; font-weight: 400;
font-style: normal; font-style: normal;
} }
@@font-face { @@font-face {
src: url(@await ResolveAssetUrlAsync(GetFontUrl("normal", 500))); src: url("@await ResolveAssetUrlAsync(GetFontUrl("normal", 500))");
font-family: gg sans; font-family: gg sans;
font-weight: 500; font-weight: 500;
font-style: normal; font-style: normal;
} }
@@font-face { @@font-face {
src: url(@await ResolveAssetUrlAsync(GetFontUrl("normal", 600))); src: url("@await ResolveAssetUrlAsync(GetFontUrl("normal", 600))");
font-family: gg sans; font-family: gg sans;
font-weight: 600; font-weight: 600;
font-style: normal; font-style: normal;
} }
@@font-face { @@font-face {
src: url(@await ResolveAssetUrlAsync(GetFontUrl("normal", 700))); src: url("@await ResolveAssetUrlAsync(GetFontUrl("normal", 700))");
font-family: gg sans; font-family: gg sans;
font-weight: 700; font-weight: 700;
font-style: normal; font-style: normal;
} }
@@font-face { @@font-face {
src: url(@await ResolveAssetUrlAsync(GetFontUrl("normal", 800))); src: url("@await ResolveAssetUrlAsync(GetFontUrl("normal", 800))");
font-family: gg sans; font-family: gg sans;
font-weight: 800; font-weight: 800;
font-style: normal; font-style: normal;
} }
@@font-face { @@font-face {
src: url(@await ResolveAssetUrlAsync(GetFontUrl("italic", 400))); src: url("@await ResolveAssetUrlAsync(GetFontUrl("italic", 400))");
font-family: gg sans; font-family: gg sans;
font-weight: 400; font-weight: 400;
font-style: italic; font-style: italic;
} }
@@font-face { @@font-face {
src: url(@await ResolveAssetUrlAsync(GetFontUrl("italic", 500))); src: url("@await ResolveAssetUrlAsync(GetFontUrl("italic", 500))");
font-family: gg sans; font-family: gg sans;
font-weight: 500; font-weight: 500;
font-style: italic; font-style: italic;
} }
@@font-face { @@font-face {
src: url(@await ResolveAssetUrlAsync(GetFontUrl("italic", 600))); src: url("@await ResolveAssetUrlAsync(GetFontUrl("italic", 600))");
font-family: gg sans; font-family: gg sans;
font-weight: 600; font-weight: 600;
font-style: italic; font-style: italic;
} }
@@font-face { @@font-face {
src: url(@await ResolveAssetUrlAsync(GetFontUrl("italic", 700))); src: url("@await ResolveAssetUrlAsync(GetFontUrl("italic", 700))");
font-family: gg sans; font-family: gg sans;
font-weight: 700; font-weight: 700;
font-style: italic; font-style: italic;
} }
@@font-face { @@font-face {
src: url(@await ResolveAssetUrlAsync(GetFontUrl("italic", 800))); src: url("@await ResolveAssetUrlAsync(GetFontUrl("italic", 800))");
font-family: gg sans; font-family: gg sans;
font-weight: 800; font-weight: 800;
font-style: italic; font-style: italic;

Loading…
Cancel
Save