+ if ( gs_antialiasingThreshold == -1 )
+ {
+ gs_antialiasingThreshold = 10;
+#if wxUSE_SYSTEM_OPTIONS
+ if ( wxSystemOptions::HasOption(wxT("mgl.aa-threshold")) )
+ gs_antialiasingThreshold =
+ wxSystemOptions::GetOptionInt(wxT("mgl.aa-threshold"));
+ wxLogTrace("mgl_font", "AA threshold set to %i", gs_antialiasingThreshold);
+#endif
+ }
+
+ // Small characters don't look good when antialiased with the algorithm
+ // that FreeType uses (mere 2x2 supersampling), so lets disable it AA
+ // completely for small fonts.
+ bool antialiased = false;
+ if (( pt > gs_antialiasingThreshold ) &&
+ ( m_fontLib->fontLibType != MGL_BITMAPFONT_LIB ) )
+ antialiased = aa;
+
+ bool slant = (((m_type & wxFONTFACE_ITALIC) == 0) &&