From 7cc95ea29456c309b78685337d9425107ce7a7b9 Mon Sep 17 00:00:00 2001 From: Jhair Paris <70655025+jhairparis@users.noreply.github.com> Date: Tue, 26 Dec 2023 00:03:55 -0500 Subject: [PATCH] Add support for TTF and WOFF font files --- GK6X/WebGUI.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/GK6X/WebGUI.cs b/GK6X/WebGUI.cs index 25983ed..a9d84f8 100644 --- a/GK6X/WebGUI.cs +++ b/GK6X/WebGUI.cs @@ -908,6 +908,14 @@ private void Process(HttpListenerContext context) responseBuffer = File.ReadAllBytes(file); contentType = "text/css"; break; + case ".ttf": + responseBuffer = File.ReadAllBytes(file); + contentType = "font/ttf"; + break; + case ".woff": + responseBuffer = File.ReadAllBytes(file); + contentType = "font/woff"; + break; default: Program.Log("Unhandled file type " + extension + " " + context.Request.Url.AbsolutePath); break;