Skip to content

Commit

Permalink
Merge pull request #7 from Sevz17/update-fcft
Browse files Browse the repository at this point in the history
Update fcft
  • Loading branch information
djpohly authored Feb 15, 2022
2 parents 52c5666 + efda89b commit 57fe859
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dtao.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ draw_frame(char *text)

/* Turn off subpixel rendering, which complicates things when
* mixed with alpha channels */
const struct fcft_glyph *glyph = fcft_glyph_rasterize(font, codepoint,
const struct fcft_glyph *glyph = fcft_rasterize_char_utf32(font, codepoint,
FCFT_SUBPIXEL_NONE);
if (!glyph)
continue;
Expand Down Expand Up @@ -570,6 +570,7 @@ main(int argc, char **argv)
BARF("compositor does not support all needed protocols");

/* Load selected font */
fcft_init(FCFT_LOG_COLORIZE_AUTO, 0, FCFT_LOG_CLASS_ERROR);
fcft_set_scaling_filter(FCFT_SCALING_FILTER_LANCZOS3);
font = fcft_from_name(1, (const char *[]) {fontstr}, NULL);
if (!font)
Expand Down Expand Up @@ -603,6 +604,7 @@ main(int argc, char **argv)
wl_surface_destroy(wl_surface);
zwlr_layer_shell_v1_destroy(layer_shell);
fcft_destroy(font);
fcft_fini();
wl_shm_destroy(shm);
wl_compositor_destroy(compositor);
wl_registry_destroy(registry);
Expand Down

0 comments on commit 57fe859

Please sign in to comment.