DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L2215 Version: 1.1.9 Thanks! The remapping won't quite drop in as is to 1.3, as assigning name = "..." will violate const correctness; I'd recommend making it (and weight) const per my patched version, but you could also cast all the literals if you'd rather go that route. As for the actual mapping, yes, it's a kludge, and in retrospect, it might be saner to perform it based on fl_font_ rather than on name: if (fl_fonts == built_in_table) { switch (fl_font_) { case FL_HELVETICA: case FL_HELVETICA_BOLD: case FL_HELVETICA_ITALIC: case FL_HELVETICA_BOLD_ITALIC: name = "helvetica"; break; // ... case FL_ZAPF_DINGBATS: name = "zapf dingbats"; break; } } Should I flesh that out fully and submit a revised patch? (BTW, the name choices of course come from fl_font_x.cxx.) At any rate, you are correct that this isn't relevant to normal usage, even if you also accept STR #2214. Link: http://www.fltk.org/str.php?L2215 Version: 1.1.9 _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
