aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRiley Beckett <rbeckettvt@gmail.com>2025-10-12 00:35:52 -0400
committerRiley Beckett <rbeckettvt@gmail.com>2025-10-12 01:53:54 -0400
commit91759767b0c7793060f447fd545b639cf91b7ae3 (patch)
tree352721239f5fccde336aec48d6ff6acdb3fbd6ed /main.c
parentd58f2e870b8f998262609b98f91d290b65ab80d3 (diff)
freetype/fontconfig base
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/main.c b/main.c
index bf27838..4489928 100644
--- a/main.c
+++ b/main.c
@@ -6,6 +6,7 @@
#include "wayland.h"
#include "graphics.h"
#include "input_field.h"
+#include "font.h"
void poll_events(client_state* state);
@@ -34,6 +35,13 @@ int main() {
return 1;
}
+ char* font = get_font("Monospace");
+ printf("font: %s\n", font);
+ if (!init_freetype(&state, font)) {
+ fprintf(stderr, "Failed to Initalize FreeType\n");
+ }
+ free(font);
+
// event loop
while (state.running) {
poll_events(&state);