Initial commit, screen code mostly working, a couple of symbols missing from the font, keypresses work but is not programmed yet
This commit is contained in:
1
fonts/.envrc
Normal file
1
fonts/.envrc
Normal file
@@ -0,0 +1 @@
|
||||
use flake
|
||||
3053
fonts/VictorMonoNerdFont-SemiBoldItalic-32.bdf
Normal file
3053
fonts/VictorMonoNerdFont-SemiBoldItalic-32.bdf
Normal file
File diff suppressed because it is too large
Load Diff
BIN
fonts/VictorMonoNerdFont-SemiBoldItalic-32.pcf
Normal file
BIN
fonts/VictorMonoNerdFont-SemiBoldItalic-32.pcf
Normal file
Binary file not shown.
BIN
fonts/VictorMonoNerdFont-SemiBoldItalic.ttf
Normal file
BIN
fonts/VictorMonoNerdFont-SemiBoldItalic.ttf
Normal file
Binary file not shown.
15
fonts/convert_font.py
Normal file
15
fonts/convert_font.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import os, sys
|
||||
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
import characters
|
||||
import fontforge
|
||||
font = fontforge.open("VictorMonoNerdFont-SemiBoldItalic.ttf")
|
||||
font.selection.none()
|
||||
for char in characters.get_character_set():
|
||||
font.selection.select(("more",), ord(char))
|
||||
font.selection.invert()
|
||||
font.clear()
|
||||
size = 32
|
||||
font.selection.all()
|
||||
font.bitmapSizes = ((size,),)
|
||||
font.regenBitmaps((size,))
|
||||
font.generate(f"VictorMonoNerdFont-SemiBoldItalic.bdf", bitmap_type="bdf", bitmap_resolution=96)
|
||||
57
fonts/flake.lock
generated
Normal file
57
fonts/flake.lock
generated
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 0,
|
||||
"narHash": "sha256-Qn3nPMSopRQJgmvHzVqPcE3I03zJyl8cSbgnnltfFDY=",
|
||||
"path": "/nix/store/avxvalb7xf8x4avmrbcvn1vr5yy46kxs-source",
|
||||
"type": "path"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs",
|
||||
"utils": "utils"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731533236,
|
||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
17
fonts/flake.nix
Normal file
17
fonts/flake.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
inputs = {
|
||||
utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
outputs = { self, nixpkgs, utils }: utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
devShell = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
( python3.withPackages ( ps: [ ps.fontforge ] ) )
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user