DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2216
Version: 1.1.9
At present, fl_draw defaults the font to (FL_HELVETICA, 14) in
fl_font_x.cpp but not fl_font_xft.cpp; I'm attaching a trivial patch to do
it for the latter as well.
Link: http://www.fltk.org/str.php?L2216
Version: 1.1.9
Index: fl_font_xft.cxx
===================================================================
--- fl_font_xft.cxx (revision 6826)
+++ fl_font_xft.cxx (working copy)
@@ -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-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs