From 9e27070d160136768fc2dea655b0f3e3e3c12ec4 Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 6 May 2011 18:33:35 +0000 Subject: [PATCH] add a debug print about font map use git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11112 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=f0bfa0b0304f429514f40f60311a345ee11ae200 --- ft2.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ft2.c b/ft2.c index 105417a0..8648c641 100644 --- a/ft2.c +++ b/ft2.c @@ -1224,6 +1224,13 @@ static qboolean Font_LoadMap(ft2_font_t *font, ft2_font_map_t *mapstart, Uchar _ // create a cachepic_t from the data now, or reuse an existing one map->pic = Draw_CachePic_Flags(map_identifier, CACHEPICFLAG_QUIET); + if (developer_font.integer) + { + if (map->pic->tex == r_texture_notexture) + Con_Printf("Generating font map %s (size: %.1f MB)\n", map_identifier, mapstart->glyphSize * (256 * 4 / 1048576.0) * mapstart->glyphSize); + else + Con_Printf("Using cached font map %s (size: %.1f MB)\n", map_identifier, mapstart->glyphSize * (256 * 4 / 1048576.0) * mapstart->glyphSize); + } Font_Postprocess(font, NULL, 0, bytesPerPixel, mapstart->size*2, mapstart->size*2, &gpad_l, &gpad_r, &gpad_t, &gpad_b); -- 2.39.2