Author: matt
Date: 2009-09-13 03:17:15 -0700 (Sun, 13 Sep 2009)
New Revision: 6864
Log:
Setting a default font for Xft

Modified:
   branches/branch-1.1/CHANGES
   branches/branch-1.1/src/fl_font_xft.cxx

Modified: branches/branch-1.1/CHANGES
===================================================================
--- branches/branch-1.1/CHANGES 2009-09-13 10:17:04 UTC (rev 6863)
+++ branches/branch-1.1/CHANGES 2009-09-13 10:17:15 UTC (rev 6864)
@@ -1,5 +1,6 @@
 CHANGES IN FLTK 1.1.10
 
+       - Setting a default font for Xft (STR #2216)
        - Temporarily limited builds to 32-bit on OX S to stay
          compatible to Snow Leopard
        - Fixed Windows compile bug with "#define USE_COLORMAP 0"

Modified: branches/branch-1.1/src/fl_font_xft.cxx
===================================================================
--- branches/branch-1.1/src/fl_font_xft.cxx     2009-09-13 10:17:04 UTC (rev 
6863)
+++ branches/branch-1.1/src/fl_font_xft.cxx     2009-09-13 10:17:15 UTC (rev 
6864)
@@ -387,6 +387,9 @@
 }
 
 void fl_draw(const char *str, int n, int x, int y) {
+  if ( !current_font ) {
+    fl_font(FL_HELVETICA, 14);
+  }
 #if USE_OVERLAY
   XftDraw*& draw = fl_overlay ? draw_overlay : ::draw;
   if (fl_overlay) {

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to