summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fl_font_mac.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fl_font_mac.cxx b/src/fl_font_mac.cxx
index 83ecc9147..f37500ce9 100644
--- a/src/fl_font_mac.cxx
+++ b/src/fl_font_mac.cxx
@@ -230,6 +230,10 @@ static int n_iso_buf = 0;
// this function must be available for OpenGL character drawing as well
const char *fl_iso2macRoman(const char *s, int n) {
+ // do not do a text lookup for 'Symbol' or 'WebDings'. This fails
+ // if the user assigns a new font to these numbers though.
+ if (fl_font_ == 12 || fl_font_ == 15)
+ return s;
if (n>n_iso_buf) {
if (iso_buf) free(iso_buf);
iso_buf = (char*)malloc(n+500);