[wesnoth-commits] [wesnoth/wesnoth] a56497: font: Work around chromatic aberration issue with ...
Iris Morelle
noreply at github.com
Wed Mar 17 19:59:25 UTC 2021
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: a56497a561b0f491d686fb396029f98fe94fac72
https://github.com/wesnoth/wesnoth/commit/a56497a561b0f491d686fb396029f98fe94fac72
Author: Iris Morelle <shadowm at wesnoth.org>
Date: 2021-03-17 (Wed, 17 Mar 2021)
Changed paths:
M src/font/text.cpp
Log Message:
-----------
font: Work around chromatic aberration issue with Windows ClearType
This disables subpixel hinting, causing Cairo to render wispy text
because of gamma issues when not rendering text directly onto an opaque
surface (which we can't help due to the game engine's current design).
However, it also makes the implementation of pango_text overblend all
transparent pixels to compensate like it was previously done before the
revert in commit c91b200b7a10bf82fb13417a1267fcdf0fc4b2c1.
Overblending by 75% seems good enough for our purposes, and also close
enough to what we get on Linux with FreeType alone.
More information about the Commits
mailing list