Lines Matching refs:gfx_unicodeFont
67 TTF_Font *gfx_unicodeFont; variable
116 gfx_unicodeFont = TTF_OpenFont(_("data/TakaoPGothic.ttf"), 13); in gfx_init()
117 if (gfx_unicodeFont == NULL) in gfx_init()
122 TTF_SetFontStyle(gfx_unicodeFont, TTF_STYLE_BOLD); in gfx_init()
293 if (TTF_SizeUTF8(gfx_unicodeFont, in, &w, NULL) < 0) in gfx_unicodeWidth()
360 if (gfx_unicodeFont != NULL) in gfx_renderUnicodeBase()
363 if (TTF_SizeUTF8(gfx_unicodeFont, remainingStr, &w, &h) < 0) in gfx_renderUnicodeBase()
390 if (TTF_SizeUTF8(gfx_unicodeFont, testStr, &w, &h) < 0) in gfx_renderUnicodeBase()
396 textSurf = TTF_RenderUTF8_Blended(gfx_unicodeFont, testStr, color); in gfx_renderUnicodeBase()
414 y += TTF_FontHeight(gfx_unicodeFont) + 1; in gfx_renderUnicodeBase()
423 if (TTF_SizeUTF8(gfx_unicodeFont, remainingStr, &w, &h) < 0) in gfx_renderUnicodeBase()
428 textSurf = TTF_RenderUTF8_Blended(gfx_unicodeFont, remainingStr, color); in gfx_renderUnicodeBase()
446 y += TTF_FontHeight(gfx_unicodeFont) + 1; in gfx_renderUnicodeBase()
462 TTF_SizeUTF8(gfx_unicodeFont, in, &w, NULL); in gfx_renderUnicode()
623 if (TTF_SizeUTF8(gfx_unicodeFont, inString, &w, &th) < 0) in gfx_createTextSurface()