Skip to content

Commit

Permalink
Merge pull request #204 from jhairparis/master
Browse files Browse the repository at this point in the history
Add support for TTF and WOFF font files
  • Loading branch information
pixeltris authored Apr 7, 2024
2 parents 5c278ce + 7cc95ea commit 4ce22ca
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 4ce22ca

Please sign in to comment.