From fdcdc8fd46547a7cd77010db6b57f9cc9f4f51d1 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 11 Dec 2001 16:03:13 +0000 Subject: Multiple fixes from Sebastien. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1833 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_font.cxx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/fl_font.cxx') diff --git a/src/fl_font.cxx b/src/fl_font.cxx index e88eaa8ce..c00c674ed 100644 --- a/src/fl_font.cxx +++ b/src/fl_font.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_font.cxx,v 1.9.2.5.2.1 2001/11/27 17:44:08 easysw Exp $" +// "$Id: fl_font.cxx,v 1.9.2.5.2.2 2001/12/11 16:03:13 easysw Exp $" // // Font selection code for the Fast Light Tool Kit (FLTK). // @@ -38,6 +38,7 @@ # include "Fl_Font.H" # include +# include # include # include @@ -172,14 +173,7 @@ static Fl_FontSize* find(int fnum, int size) { // whoa! A scalable font! Use unless exact match found: int l = c-thisname; memcpy(namebuffer,thisname,l); -#if 1 // this works if you don't want stdio - if (size>=100) namebuffer[l++] = size/100+'0'; - if (size>=10) namebuffer[l++] = (size/10)%10+'0'; - namebuffer[l++] = (size%10)+'0'; -#else - //for some reason, sprintf fails to return the right value under Solaris. l += sprintf(namebuffer+l,"%d",size); -#endif while (*c == '0') c++; strcpy(namebuffer+l,c); name = namebuffer; @@ -295,5 +289,5 @@ void fl_draw(const char* str, int x, int y) { #endif // -// End of "$Id: fl_font.cxx,v 1.9.2.5.2.1 2001/11/27 17:44:08 easysw Exp $". +// End of "$Id: fl_font.cxx,v 1.9.2.5.2.2 2001/12/11 16:03:13 easysw Exp $". // -- cgit v1.2.3