diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-13 07:13:45 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-13 07:13:45 +0100 |
| commit | 1d5b0658334c6f63b99f1463d50b10cd897d664a (patch) | |
| tree | 50ccbc0024d0f0450f2b862063ae2ae4f99280c8 /src | |
| parent | ff42eaa149231f3ecad178ad786eac294def333f (diff) | |
dont need no more
Diffstat (limited to 'src')
| -rw-r--r-- | src/text.h | 11 | ||||
| -rw-r--r-- | src/wayclock.cc | 17 |
2 files changed, 0 insertions, 28 deletions
@@ -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)) { |
