diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-12-02 15:51:38 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-12-02 15:51:38 +0000 |
| commit | beb210d4d4ea2550fcc9de5a610b8fe6d9afc631 (patch) | |
| tree | f792a964cfdc82e9de4fd838be0c58282eefbbd5 /src/fl_set_fonts.cxx | |
| parent | c061230dc7ba0d14dcfa96dedb59f34f6a16d378 (diff) | |
Font changes from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@109 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_set_fonts.cxx')
| -rw-r--r-- | src/fl_set_fonts.cxx | 7 |
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 $". // |
