[Freeciv-Dev] Re: (PR#12612) Different city name styles
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<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
|
|