]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
fix some more of the weird workarounds
authorRudolf Polzer <divVerent@xonotic.org>
Thu, 9 Dec 2010 06:08:34 +0000 (07:08 +0100)
committerRudolf Polzer <divVerent@xonotic.org>
Thu, 9 Dec 2010 06:08:34 +0000 (07:08 +0100)
libs/gtkutil/glfont.cpp
radiant/mainframe.cpp

index a3eac91de0d160167775bc15210b0918d76deb2e..12e06b6ebad2e854f6eee1a6a006b935d1c13a38 100644 (file)
@@ -206,10 +206,10 @@ class GLFontInternal: public GLFont
                int font_descent_pango_units;
 
 #if !PANGO_VERSION_CHECK(1,22,0)
-               ft2_context = pango_ft2_get_context(72, 72);
+               ft2_context = pango_ft2_get_context(96, 96);
 #else
                fontmap = pango_ft2_font_map_new();
-               pango_ft2_font_map_set_resolution(PANGO_FT2_FONT_MAP(fontmap), 72, 72);
+               //pango_ft2_font_map_set_resolution(PANGO_FT2_FONT_MAP(fontmap), 96, 96);
                ft2_context = pango_font_map_create_context(fontmap);
 #endif
 
index 0aaf664799c370bc411dfc4bc0a4723ce90bcd21..452c97fdcc7a60b25ee97389772883811fe97776 100644 (file)
@@ -3333,16 +3333,11 @@ void GlobalGL_sharedContextCreated()
   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;
 }