Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2004:
[Freeciv-Dev] Re: Betr: Re: (PR#7123) Metaissue for FS
Home

[Freeciv-Dev] Re: Betr: Re: (PR#7123) Metaissue for FS

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: i-freeciv-lists@xxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Betr: Re: (PR#7123) Metaissue for FS
From: "Jason Short" <jshort@xxxxxxxxxxxxxx>
Date: Sun, 4 Jan 2004 15:03:13 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7123 >

Raimar Falke wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7123 >
> 
> On Fri, Jan 02, 2004 at 05:58:11AM -0800, Raimar Falke wrote:
> 
>>>Regarding overlays of text over complex drawn backgrounds: always add an
>>>outline around the text. The outline should always be black unless the
>>>text is black or very dark, in that case the outline should be white.
>>>
>>>The reason should be obvious:
>>>http://webreference.com/graphics/column20/art/psout.gif
>>
>>Also added to my todo-list.
> 
> 
> A difficult topic. The poor-man version (I call this the
> halo-method) looks like this:
> 
>       for (d = 0; d < 8; d++) {
>       struct ct_point p2 = p;
> 
>       p2.x += DIR_DX[d];
>       p2.y += DIR_DY[d];
>       be_draw_bitmap(target, 0, black, &p2, 
>                        string->data->glyphs[i].bitmap);
>       }
>       be_draw_bitmap(target, 0, string->foreground, &p,
>                    string->data->glyphs[i].bitmap);
> 
> You first draw 8 different versions of the bitmap in black and then
> the final one in the real color.

And what if the font is anti-aliased?

jason




[Prev in Thread] Current Thread [Next in Thread]