Skip to content
Myr

main: enable subpixel antialiasing when background is fully opaque

Before adoption: this commit came in with the history the project adopted, so no landing records it.

That is, both the regular background, and selection background must be fully opaque.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent cbbf0fc · Browse files · 1 file+8 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−0 removed

  • other:+8 added−0 removed

1 file+8 added−0 removed

modified:main.c+8 added
360 unmodified lines
361362 if ((font = font_from_name(&(const char *){font_name}, 1, font_attrs)) == NULL)363 goto out;364365 /* Enable subpixel antialiasing only when BOTH background and366 * selection colors are opaque */367 if (render_options.background_color.a == 1.0 &&368 render_options.selection_color.a == 1.0)369 {370 font_enable_subpixel_antialias(font);371 }372373 LOG_DBG(374 "font: height: %d, ascent: %d, descent: %d",375 font->height, font->ascent, font->descent);376
56 unmodified lines