diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-01-19 11:44:21 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-01-19 11:44:21 +0000 |
| commit | 767a0ec232a184261f8727314a72a9085057a7ab (patch) | |
| tree | aa5d2433a91e72c33745e942276792d2859baa87 /terminal.c | |
| parent | meson/PKGBUILD: need fcft >= 0.4.3 to configure subpixel antialiasing (diff) | |
fcft: update to 1.0.0
Allow/disallow subpixel antialiasing in font_glyph_for_wc(), not using
font_enable_subpixel_antialias().
Diffstat (limited to 'terminal.c')
| -rw-r--r-- | terminal.c | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -515,23 +515,11 @@ initialize_fonts(struct terminal *term, const struct config *conf) snprintf(attrs2, sizeof(attrs2), "dpi=%u:slant=italic", dpi); snprintf(attrs3, sizeof(attrs3), "dpi=%u:weight=bold:slant=italic", dpi); - bool ret = ( + return ( (term->fonts[0] = font_from_name(names, count, attrs0)) != NULL && (term->fonts[1] = font_from_name(names, count, attrs1)) != NULL && (term->fonts[2] = font_from_name(names, count, attrs2)) != NULL && (term->fonts[3] = font_from_name(names, count, attrs3)) != NULL); - - LOG_DBG("%s subpixel antialiasing", conf->colors.alpha == 0xffff - ? "enabling" : "disabling"); - - if (conf->colors.alpha == 0xffff) { - font_enable_subpixel_antialias(term->fonts[0]); - font_enable_subpixel_antialias(term->fonts[1]); - font_enable_subpixel_antialias(term->fonts[2]); - font_enable_subpixel_antialias(term->fonts[3]); - } - - return ret; } struct terminal * |
