Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2005:
[Freeciv-Dev] Re: (PR#12612) Different city name styles
Home

[Freeciv-Dev] Re: (PR#12612) Different city name styles

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: i-freeciv-lists@xxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#12612) Different city name styles
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 24 Mar 2005 11:43:12 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12612 >

Raimar Falke wrote:

>>>We have 3 options:
>>> 1) don't change the current situation
>>> 2) enable clients to do the drawing by themselves again if they want
>>> 3) add these features to the common code
>>>
>>>3) is preferred but also have the biggest requirements. For example
>>>how is the font name specified? Do all of our clients support freetype
>>>so that we can pass a freetype font name in?
>>
>>The client common code has a font enumeration.  I don't think the canvas 
>>code needs a full font implementation (yet) but since the current 
>>enumerated fonts are freeciv-specific anyway there's no harm in adding 
>>more of them.  We already have a FONT_CITY_NAME, which we could split 
>>into FONT_CITY_NAME_SMALL, FONT_CITY_NAME_MEDIUM, FONT_CITY_NAME_LARGE. 
>>  The mapview_common code then uses a different font based on city size 
>>and it's up to the GUI code how to implement it.
> 
> Where does the font defines come from? Tileset or some config file or
> are they hardcoded?

It's up to the GUI code how to implement it.  But note that the tileset 
already includes a font size (see set_city_name_font_sizes()).

jason





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