GlobalShaderCache().realise();
Textures_Realise();
+#ifdef WIN32
+ /* win32 is dodgy here, just use courier new then */
+ g_font = glfont_create("courier new 8");
+#else
/* use default font here (Sans 10 is gtk default) */
GtkSettings *settings = gtk_settings_get_default();
gchar *fontname;
g_object_get(settings, "gtk-font-name", &fontname, NULL);
g_font = glfont_create(fontname);
+#endif
GlobalOpenGL().m_font = g_font.getDisplayList();
GlobalOpenGL().m_fontHeight = g_font.getPixelHeight();
glColor3fv(vector3_to_array(g_xywindow_globals.color_gridtext));
// why does this not work on windows:
// float offx = m_vOrigin[nDim2] + h - (1 + GlobalOpenGL().m_fontAscent) / m_fScale;
- float offx = m_vOrigin[nDim2] + h - 14 / m_fScale;
+ float offx = m_vOrigin[nDim2] + h - 13 / m_fScale;
float offy = m_vOrigin[nDim1] - w + 1 / m_fScale;
for (x = xb - fmod(xb, stepx); x <= xe ; x += stepx) {
glRasterPos2f (x, offx);