diff options
Diffstat (limited to 'src/wayclock.cc')
| -rw-r--r-- | src/wayclock.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/wayclock.cc b/src/wayclock.cc index bd8491e..dc52aed 100644 --- a/src/wayclock.cc +++ b/src/wayclock.cc @@ -101,6 +101,23 @@ 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)) { |
