[Mono-list] Fwd: Re: Drawing text with "ClearType"

Alexander Shulgin alexander.shulgin at yessoftware.com
Mon Nov 1 10:08:41 EDT 2010

Oops, replied privately accidentally...

-------- Original Message --------
Subject: Re: [Mono-list] Drawing text with "ClearType"
Date: Mon, 1 Nov 2010 16:07:37 +0200
From: Alexander Shulgin <alexander.shulgin at yessoftware.com>
To: Yves Goergen <nospam.list at unclassified.de>

On 01.11.2010 16:02, Yves Goergen wrote:
> Hi again,
> now that drawing images works for me, I'd like to know why Mono doesn't
> use sub-pixel text rendering, known as ClearType on Windows. On my
> Ubuntu desktop, everything around uses those funny colour fringes (I
> verified with an on-screen loupe), just everything within the Mono
> WinForms application is plain grey. This also - and more importantly -
> affects Bitmaps drawn using Graphics.DrawString(). I've set
> TextRenderingHint to ClearTypeGridFit explicitly and it works well on
> Windows, it just doesn't have any effect on Mono 2.4.4 (Ubuntu 10.4).

On a side note: if those bitmaps are to be displayed on other machines
for which you can't tell in advance if they have an LCD display (with
the same RGB sub-pixel layout as on generating machine), then you
definitely shouldn't want ClearType.

> Several web searches for "mono cleartype[gridfit]" mostly showed results
> with font names with "Mono" in them, like monospace or Andale Mono. The
> Mono project doesn't seem to have that high importance here - or nobody
> published anything about Mono and ClearType yet. So now I'm asking.

May be it's just not implemented in libgdiplus, however the underlying
rendering library--cairo (with freetype), certainly can handle that.


More information about the Mono-list mailing list