wxMGLFontInstance::~wxMGLFontInstance() { wxLogTrace("mgl_font", "unloading instance of '%s' slant=%i pt=%0.1f aa=%i", m_fontLib->GetMGLfont_lib_t()->name, m_slant, m_pt, m_aa); if ( m_font ) MGL_unloadFontInstance(m_font); }
/**************************************************************************** REMARKS: Checks if the font is fixed width or proportional by comparing widths of 'i' and 'm'. {secret} ****************************************************************************/ static ibool fontIsFixed( font_lib_t *fontLib) { font_t *font; ibool fixed; font = MGL_loadFontInstance(fontLib, 12, 0.0, 0.0, false); if (!font) return false; fixed = (getWidthOfChar(font, 'i') == getWidthOfChar(font, 'm')); MGL_unloadFontInstance(font); return fixed; }
wxFontInstance::~wxFontInstance() { if ( m_font ) MGL_unloadFontInstance(m_font); }