[wesnoth-commits] [wesnoth/wesnoth] cb37af: font: Work around chromatic aberration issue with ...

Iris Morelle noreply at github.com
Thu Mar 18 05:31:45 UTC 2021


  Branch: refs/heads/1.14
  Home:   https://github.com/wesnoth/wesnoth
  Commit: cb37afe1a5d09999cb9651c95562e73f184405c9
      https://github.com/wesnoth/wesnoth/commit/cb37afe1a5d09999cb9651c95562e73f184405c9
  Author: Iris Morelle <shadowm at wesnoth.org>
  Date:   2021-03-18 (Thu, 18 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