]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/font/fonttest.cpp
enable backface culling which is not enabled by default on ES
[wxWidgets.git] / tests / font / fonttest.cpp
index 7ba623bd55706cce0a1f87633b3784711f3b55e1..69df21a2f549a07ca914a4c4f2de13804669180d 100644 (file)
@@ -113,6 +113,18 @@ void FontTestCase::GetSet()
         // consider adding another branch to this #if
 #if defined(__WXMSW__) || defined(__WXOSX__)
         static const char *knownGoodFaceName = "Arial";
+#elif defined(__LINUX__)
+        static const char *knownGoodFaceName;
+        wxString distroname = wxGetLinuxDistributionInfo().Id;
+        
+        if (distroname.Contains("Ubuntu"))
+            knownGoodFaceName = "FreeSerif";
+                // ttf-freefont and ttf-dejavu packages are installed by default on [X,K]Ubuntu systems
+        else if (distroname == "Debian")
+            knownGoodFaceName = "Fixed";
+        else
+            knownGoodFaceName = "DejaVu Sans";
+                // this is very popular in many linux distro...
 #else
         static const char *knownGoodFaceName = "Fixed";
 #endif