[haiku-commits] Re: haiku: hrev50931 - src/servers/app/drawing/Painter

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 6 Feb 2017 09:03:56 +0100


Am 03.02.2017 um 15:36 schrieb Julian Harnath:

On 03.02.2017 12:00, Adrien Destugues wrote:

We already have a slider for the current filter, it would just be
about replacing it with the freetype presets.

speaking of current filter -
@Stephan, if you're reading this, maybe you could chime in and shed some
light on why the average-based filter ended up being the default? Is it
because of better performance or was the rendering result preferred, or
something else even?

I can't give better reasons than those quotes that Adrien dug up. Performance is of no concern, since I believe the filtered results are stored in the glyph cache from reading the code you linked.

I think the Freetype filter is giving more consistently good results for a much broader range of fonts. The average based filter more or less only works when the font is perfectly hinted, which more and more fonts arent't. You may expect your system font to be pixel aligned, but what then about all those other fonts, especially when surfing the web?

Best regards,

Other related posts: