summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fl_font_xft.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fl_font_xft.cxx b/src/fl_font_xft.cxx
index f02d65af7..487cd00a3 100644
--- a/src/fl_font_xft.cxx
+++ b/src/fl_font_xft.cxx
@@ -499,6 +499,9 @@ void fl_destroy_xft_draw(Window id) {
}
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) {