diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-01 22:11:17 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-01 22:11:17 +0300 |
| commit | 107cd709bd470e0ef972d2cbd686d8888c3550e4 (patch) | |
| tree | ee054340303d8312d2e48b5e9871ee93fb4caa20 /internal/generator/templates | |
| parent | f942678e7ae91d35278832f3054855269a89be3d (diff) | |
task 9: self-host nukem Web437 font
Diffstat (limited to 'internal/generator/templates')
| -rw-r--r-- | internal/generator/templates/themes/nukem/FONT_LICENSE.txt | 41 | ||||
| -rw-r--r-- | internal/generator/templates/themes/nukem/Web437_IBM_VGA_8x16.woff | bin | 0 -> 9788 bytes | |||
| -rw-r--r-- | internal/generator/templates/themes/nukem/theme.css | 14 |
3 files changed, 53 insertions, 2 deletions
diff --git a/internal/generator/templates/themes/nukem/FONT_LICENSE.txt b/internal/generator/templates/themes/nukem/FONT_LICENSE.txt new file mode 100644 index 0000000..9ee0193 --- /dev/null +++ b/internal/generator/templates/themes/nukem/FONT_LICENSE.txt @@ -0,0 +1,41 @@ +Web437 IBM VGA 8x16 +=================== + +This directory bundles the web font: + + Web437_IBM_VGA_8x16.woff + +It is taken from "The Ultimate Oldschool PC Font Pack" v2.2 by VileR +(https://int10h.org/oldschool-pc-fonts/) and is used here unmodified. + +Source archive: + + https://int10h.org/oldschool-pc-fonts/download/oldschool_pc_font_pack_v2.2_web.zip + +Source file in archive: + + woff - Web (webfonts)/Web437_IBM_VGA_8x16.woff + +Version/date: + + Ultimate Oldschool PC Font Pack v2.2, archive file timestamp 2020-11-21. + Downloaded for this repository on 2026-05-01. + +The font pack - including this file - is licensed under the Creative +Commons Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0). + + - License summary: https://creativecommons.org/licenses/by-sa/4.0/ + - Full license text: https://creativecommons.org/licenses/by-sa/4.0/legalcode + - Project page: https://int10h.org/oldschool-pc-fonts/ + - Readme & terms: https://int10h.org/oldschool-pc-fonts/readme/ + +Required attribution +-------------------- +Font: "Web437 IBM VGA 8x16" from the Ultimate Oldschool PC Font Pack + by VileR - https://int10h.org/oldschool-pc-fonts/ + Licensed under CC BY-SA 4.0. + +Because this work is distributed under CC BY-SA 4.0, any modified version +of the font itself (not the surrounding snonux code) must be released +under the same license. Embedding/serving the font as part of a web +page is not considered a derivative work of the font. diff --git a/internal/generator/templates/themes/nukem/Web437_IBM_VGA_8x16.woff b/internal/generator/templates/themes/nukem/Web437_IBM_VGA_8x16.woff Binary files differnew file mode 100644 index 0000000..1f1508d --- /dev/null +++ b/internal/generator/templates/themes/nukem/Web437_IBM_VGA_8x16.woff diff --git a/internal/generator/templates/themes/nukem/theme.css b/internal/generator/templates/themes/nukem/theme.css index 060cd08..e780cb8 100644 --- a/internal/generator/templates/themes/nukem/theme.css +++ b/internal/generator/templates/themes/nukem/theme.css @@ -1,8 +1,18 @@ + /* Bundled bitmap font: "Web437 IBM VGA 8x16" by VileR + (https://int10h.org/oldschool-pc-fonts/), used unmodified under + CC BY-SA 4.0. See FONT_LICENSE.txt in this directory. */ + @font-face { + font-family: 'Web437 IBM VGA 8x16'; + src: url('Web437_IBM_VGA_8x16.woff') format('woff'); + font-weight: normal; + font-style: normal; + font-display: swap; + } :root { --duke-red:#ff0000; --duke-gold:#ffd700; --duke-grey:#3a3a3a; --duke-bg:#0a0a0a; --duke-dark:#111111; --duke-yellow:#ffcc00; --duke-blood:#cc0000; --duke-light:#e0e0e0; } * { margin:0; padding:0; box-sizing:border-box; } - body { font-family:'Courier New',monospace; background:var(--duke-bg); + body { font-family:'Web437 IBM VGA 8x16','Courier New',monospace; background:var(--duke-bg); color:var(--duke-light); overflow:hidden; height:100vh; height:100dvh; font-size:18px; } #three-canvas { position:fixed; top:0; left:0; width:100%; height:100%; z-index:1; } .overlay { position:relative; z-index:10; height:100vh; height:100dvh; display:flex; flex-direction:column; } @@ -64,7 +74,7 @@ border:3px solid var(--duke-red); padding:28px; box-shadow:0 0 40px rgba(255,0,0,0.35); } .modal-close { float:right; background:var(--duke-red); border:none; - color:var(--duke-gold); font-family:'Courier New',monospace; + color:var(--duke-gold); font-family:'Web437 IBM VGA 8x16','Courier New',monospace; font-size:1rem; font-weight:bold; cursor:pointer; padding:4px 10px; text-transform:uppercase; letter-spacing:1px; } .modal-close:hover { background:var(--duke-gold); color:var(--duke-bg); |
