From 9b2d8347de32eb0f9a8addfce668768b67df67c0 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 30 Oct 2010 16:32:04 +0000 Subject: Added alternative names for Xft. On all Linux distors I tested, it makes no difference. If there are Unixes that need other names, the ifdef should be changed accordingly. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7773 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_font_xft.cxx | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/fl_font_xft.cxx b/src/fl_font_xft.cxx index 88b8692a9..d00404ced 100644 --- a/src/fl_font_xft.cxx +++ b/src/fl_font_xft.cxx @@ -69,6 +69,7 @@ // The predefined fonts that FLTK has: static Fl_Fontdesc built_in_table[] = { +#if 1 {" sans"}, {"Bsans"}, {"Isans"}, @@ -84,7 +85,25 @@ static Fl_Fontdesc built_in_table[] = { {" symbol"}, {" screen"}, {"Bscreen"}, -{" dingbats"}, +{" zapf dingbats"}, +#else +{" helvetica"}, +{"Bhelvetica"}, +{"Ihelvetica"}, +{"Phelvetica"}, +{" courier"}, +{"Bcourier"}, +{"Icourier"}, +{"Pcourier"}, +{" times"}, +{"Btimes"}, +{"Itimes"}, +{"Ptimes"}, +{" symbol"}, +{" lucidatypewriter"}, +{"Blucidatypewriter"}, +{" zapf dingbats"}, +#endif }; Fl_Fontdesc* fl_fonts = built_in_table; -- cgit v1.2.3