From: divverent Date: Fri, 6 May 2011 18:33:35 +0000 (+0000) Subject: add a debug print about font map use X-Git-Tag: xonotic-v0.6.0~163^2~434 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f0bfa0b0304f429514f40f60311a345ee11ae200;p=xonotic%2Fdarkplaces.git add a debug print about font map use git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11112 d7cf8633-e32d-0410-b094-e92efae38249 --- 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);