mirror of
https://github.com/asciinema/asciinema.git
synced 2026-05-18 05:04:50 +02:00
Enable Nerd Font Symbols in the player when streaming locally
This commit is contained in:
BIN
assets/SymbolsNerdFont-Regular.woff2
Normal file
BIN
assets/SymbolsNerdFont-Regular.woff2
Normal file
Binary file not shown.
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user