Enable Nerd Font Symbols in the player when streaming locally

This commit is contained in:
Marcin Kulik
2026-01-09 14:51:09 +01:00
parent 8f4172c732
commit e25aa8418d
3 changed files with 7 additions and 0 deletions

Binary file not shown.

View File

@@ -5,6 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="asciinema-player.css">
<style>
@font-face {
font-family: "Symbols Nerd Font";
src: local(SymbolsNerdFont-Regular),
url("/SymbolsNerdFont-Regular.woff2") format("woff2");
}
:root {
--term-color-background: black;
}

View File

@@ -196,6 +196,7 @@ fn mime_from_path(path: &str) -> &'static str {
Some("html") => "text/html",
Some("js") => "text/javascript",
Some("css") => "text/css",
Some("woff2") => "font/woff2",
Some(_) | None => "application/octet-stream",
}
}