summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES1
-rw-r--r--src/fl_set_font.cxx8
2 files changed, 7 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index c3b82c011..27ce91bab 100644
--- a/CHANGES
+++ b/CHANGES
@@ -11,6 +11,7 @@ CHANGES IN FLTK 1.1.0b8
focus (the parent redraw clears the focus box.)
- Fixed the example program makefile - wasn't building
the mandelbrot and shiny demos right.
+ - Fl::set_font(Fl_Font, Fl_Font) was not implemented.
CHANGES IN FLTK 1.1.0b7
diff --git a/src/fl_set_font.cxx b/src/fl_set_font.cxx
index b41c8b6f6..e5bf2b710 100644
--- a/src/fl_set_font.cxx
+++ b/src/fl_set_font.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: fl_set_font.cxx,v 1.5.2.3.2.2 2001/11/27 17:44:08 easysw Exp $"
+// "$Id: fl_set_font.cxx,v 1.5.2.3.2.3 2001/12/14 16:54:31 easysw Exp $"
//
// Font utilities for the Fast Light Tool Kit (FLTK).
//
@@ -68,8 +68,12 @@ void Fl::set_font(Fl_Font fnum, const char* name) {
s->first = 0;
}
+void Fl::set_font(Fl_Font fnum, Fl_Font from) {
+ Fl::set_font(fnum, get_font(from));
+}
+
const char* Fl::get_font(Fl_Font fnum) {return fl_fonts[fnum].name;}
//
-// End of "$Id: fl_set_font.cxx,v 1.5.2.3.2.2 2001/11/27 17:44:08 easysw Exp $".
+// End of "$Id: fl_set_font.cxx,v 1.5.2.3.2.3 2001/12/14 16:54:31 easysw Exp $".
//