void aFont::destroy() { if ( gosFont ) gos_DeleteFont( gosFont ); gosFont = 0; resID = 0; fontName[0] = 0; }
void GameDebugWindow::setFont (char* fontFile) { if (font) { gos_DeleteFont(font); font = NULL; } if (fontFile) { font = gos_LoadFont(fontFile); gos_TextSetAttributes(font, 0xffffffff, 1.0, true, true, false, false); } DWORD height, width; gos_TextStringLength(&width, &height, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"); fontHeight = height; }