[Freeciv-Dev] (PR#12286) city_names_font_size and gui-xaw
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12286 >
Raimar Falke wrote:
> Date: Thu Feb 17 22:57:58 2005-Thu Feb 17 22:57:58 2005
> Author: evyscr
> Subject: evyscr: gui-xaw: Declare fontnames variable in gui_m...
> Files:
> client/gui-xaw/gui_main.c:1.104
> Message:
> gui-xaw: Declare fontnames variable in gui_main.c (PR#12270).
> Patch by me.
> Lines: 24
> Diffstat:
>
> Index: client/gui-xaw/gui_main.c
> ===================================================================
> RCS file: /home/freeciv/CVS/freeciv/client/gui-xaw/gui_main.c,v
> retrieving revision 1.103
> retrieving revision 1.104
> diff -u -r1.103 -r1.104
> --- client/gui-xaw/gui_main.c 17 Feb 2005 03:12:54 -0000 1.103
> +++ client/gui-xaw/gui_main.c 17 Feb 2005 22:57:58 -0000 1.104
> @@ -358,14 +358,13 @@
> char **missing_charset_list_return;
> int missing_charset_count_return;
> char *def_string_return;
> + char *city_names_font, *city_productions_font_name;
>
> values.graphics_exposures = False;
> civ_gc = XCreateGC(display, root_window, GCGraphicsExposures, &values);
>
> - free(city_names_font);
> city_names_font = mystrdup("-*-*-*-*-*--14-*");
>
> - free(city_productions_font_name);
> city_productions_font_name = mystrdup("-*-*-*-*-*--14-*");
>
> main_font_set = XCreateFontSet(display, city_names_font,
You probably want to look at the city_names_font_size and
city_productions_font_size value. Something like:
char city_names_font[128];
mysnprintf(city_names_font, ..., "-*-*-*-*-*--%d-*",
city_names_font_size);
only thing is I think the font size is 10 in the (default) tileset
(taken from the gtk2 client)...maybe you need some extra modifiers like
"bold" in there somewhere.
-jason
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#12286) city_names_font_size and gui-xaw,
Jason Short <=
|
|