mirror of
https://github.com/fltk/fltk.git
synced 2026-05-19 03:02:44 +08:00
STR #1044 (Mac only): The font number 12 and 15, usually assigned to
the fonts 'Symbol' and 'Webdings', are not translated from ISO to MacRoman anymore. This fixes the problem of not having the correct bullet in the Fl_Help Widget. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4587 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user