auto download required fonts

This commit is contained in:
CJ van den Berg 2025-02-14 16:32:26 +01:00
parent eca72c7293
commit 4630ecd137
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 15 additions and 1 deletions

View file

@ -1,4 +1,12 @@
@import url('https://fonts.cdnfonts.com/css/jetbrains-mono-2'); @font-face {
font-family: 'Iosevka';
src: url('../fonts/Iosevka-Regular.woff2') format('woff2');
}
@font-face {
font-family: 'AcPlus IBM VGA 9x16';
src: url('../fonts/AcPlus_IBM_VGA_9x16.ttf') format('truetype');
}
:root { :root {
// --font-family: "Pixel Code", monospace; // --font-family: "Pixel Code", monospace;

Binary file not shown.

Binary file not shown.

View file

@ -15,4 +15,10 @@ pub fn build(b: *std.Build) !void {
const install_key = b.addInstallFile(b.path("public.gpg"), "public.gpg"); const install_key = b.addInstallFile(b.path("public.gpg"), "public.gpg");
b.getInstallStep().dependOn(&install_key.step); b.getInstallStep().dependOn(&install_key.step);
const install_font = b.addInstallFile(b.path("assets/fonts/AcPlus_IBM_VGA_9x16.ttf"), "fonts/AcPlus_IBM_VGA_9x16.ttf");
b.getInstallStep().dependOn(&install_font.step);
const install_font2 = b.addInstallFile(b.path("assets/fonts/Iosevka-Regular.woff2"), "fonts/Iosevka-Regular.woff2");
b.getInstallStep().dependOn(&install_font2.step);
} }