… | |
… | |
40 | #define FOW_DARKNESS 32 |
40 | #define FOW_DARKNESS 32 |
41 | |
41 | |
42 | #define MAP_EXTEND_X 32 |
42 | #define MAP_EXTEND_X 32 |
43 | #define MAP_EXTEND_Y 512 |
43 | #define MAP_EXTEND_Y 512 |
44 | |
44 | |
|
|
45 | #define MIN_FONT_HEIGHT 8 * PANGO_SCALE |
|
|
46 | |
45 | typedef Mix_Chunk *CFClient__MixChunk; |
47 | typedef Mix_Chunk *CFClient__MixChunk; |
46 | typedef Mix_Music *CFClient__MixMusic; |
48 | typedef Mix_Music *CFClient__MixMusic; |
47 | |
49 | |
48 | static PangoContext *context; |
50 | static PangoContext *context; |
49 | static PangoFontMap *fontmap; |
51 | static PangoFontMap *fontmap; |
… | |
… | |
67 | * reasonably well with bitstream vera |
69 | * reasonably well with bitstream vera |
68 | */ |
70 | */ |
69 | PangoFontDescription *font = pango_context_get_font_description (context); |
71 | PangoFontDescription *font = pango_context_get_font_description (context); |
70 | |
72 | |
71 | int height = self->base_height * (PANGO_SCALE * 8 / 10); |
73 | int height = self->base_height * (PANGO_SCALE * 8 / 10); |
|
|
74 | |
|
|
75 | if (height < MIN_FONT_HEIGHT) |
|
|
76 | height = MIN_FONT_HEIGHT; |
72 | |
77 | |
73 | if (pango_font_description_get_size (font) != height) |
78 | if (pango_font_description_get_size (font) != height) |
74 | { |
79 | { |
75 | pango_font_description_set_absolute_size (font, height); |
80 | pango_font_description_set_absolute_size (font, height); |
76 | pango_layout_context_changed (self->pl); |
81 | pango_layout_context_changed (self->pl); |