From 83e3289ead749518e3c3e6d52ff071a9a348c374 Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Sat, 18 Feb 2023 18:22:27 +0200 Subject: [PATCH] Use the new `gg sans` font --- .../Exporting/PreambleTemplate.cshtml | 68 +++++++++++++++---- 1 file changed, 54 insertions(+), 14 deletions(-) diff --git a/DiscordChatExporter.Core/Exporting/PreambleTemplate.cshtml b/DiscordChatExporter.Core/Exporting/PreambleTemplate.cshtml index 60f4085..156f0e5 100644 --- a/DiscordChatExporter.Core/Exporting/PreambleTemplate.cshtml +++ b/DiscordChatExporter.Core/Exporting/PreambleTemplate.cshtml @@ -15,8 +15,8 @@ ? darkVariant : lightVariant; - string GetFontUrl(int weight) => - $"https://cdn.jsdelivr.net/gh/Tyrrrz/DiscordFonts@master/whitney-{weight}.woff"; + string GetFontUrl(string style, int weight) => + $"https://cdn.jsdelivr.net/gh/Tyrrrz/DiscordFonts@master/ggsans-{style}-{weight}.woff2"; ValueTask ResolveAssetUrlAsync(string url) => Context.ResolveAssetUrlAsync(url, CancellationToken); @@ -41,33 +41,73 @@ @{/* Styling */}