Skip to content

Commit

Permalink
Add support for TTF and WOFF font files
Browse files Browse the repository at this point in the history
  • Loading branch information
jhairparis committed Dec 26, 2023
1 parent 33edf27 commit 7cc95ea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions GK6X/WebGUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7cc95ea

Please sign in to comment.