--- deliantra/Deliantra-Client/Client.xs 2006/04/21 07:09:10 1.57 +++ deliantra/Deliantra-Client/Client.xs 2006/04/23 00:57:38 1.58 @@ -42,6 +42,8 @@ #define MAP_EXTEND_X 32 #define MAP_EXTEND_Y 512 +#define MIN_FONT_HEIGHT 8 * PANGO_SCALE + typedef Mix_Chunk *CFClient__MixChunk; typedef Mix_Music *CFClient__MixMusic; @@ -70,6 +72,9 @@ int height = self->base_height * (PANGO_SCALE * 8 / 10); + if (height < MIN_FONT_HEIGHT) + height = MIN_FONT_HEIGHT; + if (pango_font_description_get_size (font) != height) { pango_font_description_set_absolute_size (font, height);