summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-02-13 07:13:45 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-02-13 07:13:45 +0100
commit1d5b0658334c6f63b99f1463d50b10cd897d664a (patch)
tree50ccbc0024d0f0450f2b862063ae2ae4f99280c8
parentff42eaa149231f3ecad178ad786eac294def333f (diff)
dont need no more
-rw-r--r--src/text.h11
-rw-r--r--src/wayclock.cc17
2 files changed, 0 insertions, 28 deletions
diff --git a/src/text.h b/src/text.h
index c93f968..a823bd3 100644
--- a/src/text.h
+++ b/src/text.h
@@ -38,17 +38,6 @@ struct glyph_s {
f32 advance;
};
-static inline void glyph_print(struct glyph_s* glyph) {
- u32 uv0x = WAYC_X(glyph->uv0);
- u32 uv0y = WAYC_Y(glyph->uv0);
- u32 uv1x = WAYC_X(glyph->uv1);
- u32 uv1y = WAYC_Y(glyph->uv1);
- fprintf(stderr,
- "uv0: (%u, %u), uv1: (%u, %u), bearing: (%f, %f), advance: %f\n",
- uv0x, uv0y, uv1x, uv1y, WAYC_X(glyph->bearing),
- WAYC_Y(glyph->bearing), glyph->advance);
-}
-
enum font_error_e : u8 {
FONT_ERROR_NONE = 0,
FONT_ERROR_LOAD_FACE,
diff --git a/src/wayclock.cc b/src/wayclock.cc
index f9d00f4..bd8491e 100644
--- a/src/wayclock.cc
+++ b/src/wayclock.cc
@@ -101,23 +101,6 @@ int main() {
wayc_panic("Failed to initialize font");
wayc_defer(wayc_font_deinit(&font));
- struct glyph_s glyph_A = {};
- if (wayc_font_render(&font, (codepoint_t)'A', &glyph_A) != FONT_ERROR_NONE)
- wayc_panic("Failed to render glyph");
- glyph_print(&glyph_A);
-
- struct glyph_s glyph_X = {};
- if (wayc_font_render(&font, (codepoint_t)'X', &glyph_X) != FONT_ERROR_NONE)
- wayc_panic("Failed to render glyph");
- glyph_print(&glyph_X);
-
- struct glyph_s glyph_0 = {};
- if (wayc_font_render(&font, (codepoint_t)'0', &glyph_0) != FONT_ERROR_NONE)
- wayc_panic("Failed to render glyph");
- glyph_print(&glyph_0);
-
- wayc_font_flush(&font);
-
struct app_s app = {&renderer};
while (wayc_eventloop_running(&loop)) {