Skip to content

Commit

Permalink
Quote font URLs in HTML preamble to avoid issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Feb 18, 2023
1 parent 0e1c3e4 commit f36852a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions DiscordChatExporter.Core/Exporting/PreambleTemplate.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -41,70 +41,70 @@
@{/* Styling */}
<style>
@@font-face {
src: url(@await ResolveAssetUrlAsync(GetFontUrl("normal", 400)));
src: url("@await ResolveAssetUrlAsync(GetFontUrl("normal", 400))");
font-family: gg sans;
font-weight: 400;
font-style: normal;
}
@@font-face {
src: url(@await ResolveAssetUrlAsync(GetFontUrl("normal", 500)));
src: url("@await ResolveAssetUrlAsync(GetFontUrl("normal", 500))");
font-family: gg sans;
font-weight: 500;
font-style: normal;
}
@@font-face {
src: url(@await ResolveAssetUrlAsync(GetFontUrl("normal", 600)));
src: url("@await ResolveAssetUrlAsync(GetFontUrl("normal", 600))");
font-family: gg sans;
font-weight: 600;
font-style: normal;
}
@@font-face {
src: url(@await ResolveAssetUrlAsync(GetFontUrl("normal", 700)));
src: url("@await ResolveAssetUrlAsync(GetFontUrl("normal", 700))");
font-family: gg sans;
font-weight: 700;
font-style: normal;
}
@@font-face {
src: url(@await ResolveAssetUrlAsync(GetFontUrl("normal", 800)));
src: url("@await ResolveAssetUrlAsync(GetFontUrl("normal", 800))");
font-family: gg sans;
font-weight: 800;
font-style: normal;
}
@@font-face {
src: url(@await ResolveAssetUrlAsync(GetFontUrl("italic", 400)));
src: url("@await ResolveAssetUrlAsync(GetFontUrl("italic", 400))");
font-family: gg sans;
font-weight: 400;
font-style: italic;
}
@@font-face {
src: url(@await ResolveAssetUrlAsync(GetFontUrl("italic", 500)));
src: url("@await ResolveAssetUrlAsync(GetFontUrl("italic", 500))");
font-family: gg sans;
font-weight: 500;
font-style: italic;
}
@@font-face {
src: url(@await ResolveAssetUrlAsync(GetFontUrl("italic", 600)));
src: url("@await ResolveAssetUrlAsync(GetFontUrl("italic", 600))");
font-family: gg sans;
font-weight: 600;
font-style: italic;
}
@@font-face {
src: url(@await ResolveAssetUrlAsync(GetFontUrl("italic", 700)));
src: url("@await ResolveAssetUrlAsync(GetFontUrl("italic", 700))");
font-family: gg sans;
font-weight: 700;
font-style: italic;
}
@@font-face {
src: url(@await ResolveAssetUrlAsync(GetFontUrl("italic", 800)));
src: url("@await ResolveAssetUrlAsync(GetFontUrl("italic", 800))");
font-family: gg sans;
font-weight: 800;
font-style: italic;
Expand Down

0 comments on commit f36852a

Please sign in to comment.