summaryrefslogtreecommitdiff
path: root/src/fl_set_fonts.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/fl_set_fonts.cxx')
-rw-r--r--src/fl_set_fonts.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fl_set_fonts.cxx b/src/fl_set_fonts.cxx
index 649eca17f..0ea1abf19 100644
--- a/src/fl_set_fonts.cxx
+++ b/src/fl_set_fonts.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: fl_set_fonts.cxx,v 1.3 1998/10/21 14:20:58 mike Exp $"
+// "$Id: fl_set_fonts.cxx,v 1.4 1998/12/02 15:51:37 mike Exp $"
//
// More font utilities for the Fast Light Tool Kit (FLTK).
//
@@ -137,6 +137,9 @@ const char* Fl::get_font_name(Fl_Font fnum, int* ap) {
if (*x) {x++; *o++ = '('; while (*x) *o++ = *x++; *o++ = ')';}
*o = 0;
+ if (type & FL_BOLD) {strcpy(o, " bold"); o += 5;}
+ if (type & FL_ITALIC) {strcpy(o, " italic"); o += 7;}
+
if (ap) *ap = type;
return buffer;
@@ -322,5 +325,5 @@ int Fl::get_font_sizes(Fl_Font fnum, int*& sizep) {
#endif
//
-// End of "$Id: fl_set_fonts.cxx,v 1.3 1998/10/21 14:20:58 mike Exp $".
+// End of "$Id: fl_set_fonts.cxx,v 1.4 1998/12/02 15:51:37 mike Exp $".
//