From 01a02c98baadbeb67424a1466ed99324c34b043b Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Fri, 17 Jan 2025 03:02:50 +0200 Subject: [PATCH] Yeah we draw some kind of UI maybe --- .gitignore | 1 + Makefile | 4 ++++ README.md | 10 ++++++++++ main.c | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 48 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 README.md create mode 100644 main.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..abfad5b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +kaari \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8af239f --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +build: main.c + tcc -o kaari main.c +run: main.c + tcc -run main.c diff --git a/README.md b/README.md new file mode 100644 index 0000000..fbe05d2 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +Kaari +===== + +For editing a binary format font. Made in C. + +Building +-------- + +I guess I am using TCC to build this project. +Should be able to use about any C compiler tbh. \ No newline at end of file diff --git a/main.c b/main.c new file mode 100644 index 0000000..8b80427 --- /dev/null +++ b/main.c @@ -0,0 +1,33 @@ +#include + +#define clear() printf("\033[H\033[J") +#define gotoxy(x,y) printf("\033[%d;%dH", (y), (x)) + +void drawWin(int fontH); + +int main() { + clear(); + drawWin(12); + return 0; +} + +void drawWin(int fontH) { + clear(); + printf("Kaari - Binarier font editor\r\n"); + printf("+--------+\r\n"); + + int cstart=32; + int cperline=16; + int cmax=126; + for (int y=0; y