fltk/FL
Greg Ercolano 41cef82137 Applied patch from STR#2115.
This fix to fl_height(int,int) solves the "digital drit"
problem in Fl_Text_Editor, where doing insert/delete 
operations was leaving a trail of dead pixels. 

Also fixes problem with font display problem in fluid's
code editor. See the STR for screenshots of the problem.

NOTE: THIS IS A WORKAROUND FOR A DEEPER PROBLEM.
Somewhere during the port of UTF8, the actual pixel size
of the displayed font is a little off, causing FLTK to
miscalculate line height, causing 'digital drit'.

It used to be that when you specified a font size,
the font's actual displayed pixel size matched the
font size value.

This fix makes the fl_height(int,int) function more robust,
actually inquiring the font system for its font size, instead
of assuming the font size is the same as the 'size' argument.

Since Fl_Text_Editor makes use of this function, it helps
that widget calculate font sizes correctly.

The real fix will be restoring FLTK's old behavior where the 
font size specified is the actual pixel size of the displayed font.
Then this function can be reverted to just returning the 'size' argument.




git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-08-28 20:14:41 +00:00
..
dirent.h Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Enumerations.H converted more html tags to doxygen commands in drawing.dox 2009-04-01 22:11:57 +00:00
filename.H Major documentation update including: now html doc API is sorted, navigation problems/side effects fixed, html tags replaced by proper doxygen commands, parameters command switched from a to p. Includes a pdf update. 2009-03-24 01:40:44 +00:00
Fl_Adjuster.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
fl_ask.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Bitmap.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_BMP_Image.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Box.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Browser_.H Fl_Browser mods for scrollbar sizing 2009-04-02 06:44:34 +00:00
Fl_Browser.H Doxgen mods for Fl_Browser*: 2009-03-27 16:52:31 +00:00
Fl_Button.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Cairo_Window.H Major documentation update including: now html doc API is sorted, navigation problems/side effects fixed, html tags replaced by proper doxygen commands, parameters command switched from a to p. Includes a pdf update. 2009-03-24 01:40:44 +00:00
Fl_Cairo.H Major documentation update including: now html doc API is sorted, navigation problems/side effects fixed, html tags replaced by proper doxygen commands, parameters command switched from a to p. Includes a pdf update. 2009-03-24 01:40:44 +00:00
Fl_Chart.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Check_Browser.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Check_Button.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Choice.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Clock.H Fixed some typos in docs. 2009-07-01 07:27:25 +00:00
Fl_Color_Chooser.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Counter.H Major documentation update including: now html doc API is sorted, navigation problems/side effects fixed, html tags replaced by proper doxygen commands, parameters command switched from a to p. Includes a pdf update. 2009-03-24 01:40:44 +00:00
Fl_Dial.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Double_Window.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
fl_draw.H Applied patch from STR#2115. 2009-08-28 20:14:41 +00:00
Fl_Export.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_File_Browser.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_File_Chooser.H Removed unused member variable ext_managed from Fl_File_Chooser 2009-03-13 23:36:09 +00:00
Fl_File_Icon.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_File_Input.H Major documentation update including: now html doc API is sorted, navigation problems/side effects fixed, html tags replaced by proper doxygen commands, parameters command switched from a to p. Includes a pdf update. 2009-03-24 01:40:44 +00:00
Fl_Fill_Dial.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Fill_Slider.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Float_Input.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_FormsBitmap.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_FormsPixmap.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Free.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_GIF_Image.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Gl_Window.H Modified all public widget draw methods to be protected. 2009-02-18 09:27:54 +00:00
Fl_Group.H Major documentation update including: now html doc API is sorted, navigation problems/side effects fixed, html tags replaced by proper doxygen commands, parameters command switched from a to p. Includes a pdf update. 2009-03-24 01:40:44 +00:00
Fl_Help_Dialog.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Help_View.H Fix image handling in Fl_Help_View (STR #2163 and STR #2004). 2009-04-07 17:33:22 +00:00
Fl_Hold_Browser.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Hor_Fill_Slider.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Hor_Nice_Slider.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Hor_Slider.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Hor_Value_Slider.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Image.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Input_.H Typos and alignments 2009-07-18 11:03:44 +00:00
Fl_Input_Choice.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Input.H converted html tags to doxygen commands in documentation/src/events.dox 2009-03-18 22:58:12 +00:00
Fl_Int_Input.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_JPEG_Image.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Light_Button.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Line_Dial.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Menu_.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Menu_Bar.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Menu_Button.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Menu_Item.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Menu_Window.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Menu.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
fl_message.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Multi_Browser.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Multi_Label.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Multiline_Input.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Multiline_Output.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Nice_Slider.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Object.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Output.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Overlay_Window.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Pack.H Modified all public widget draw methods to be protected. 2009-02-18 09:27:54 +00:00
Fl_Pixmap.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_PNG_Image.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_PNM_Image.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Positioner.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Preferences.H Updated doxygen docs for Fl_Input_ to get a greater insight into the code. I'll try to get full Unicode support in soon. The current code uses some interesting solutions ;-). 2009-04-18 18:52:59 +00:00
Fl_Progress.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Radio_Button.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Radio_Light_Button.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Radio_Round_Button.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Repeat_Button.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Return_Button.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_RGB_Image.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Roller.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Round_Button.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Round_Clock.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Scroll.H Fl_Scroll mods for global scrollbar size control. 2009-07-12 00:15:06 +00:00
Fl_Scrollbar.H updated Fl_Slider and Fl_Scrollbar documentation (STR #2156 - part 2) 2009-03-14 11:46:43 +00:00
Fl_Secret_Input.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Select_Browser.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Shared_Image.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
fl_show_colormap.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
fl_show_input.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Simple_Counter.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Single_Window.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Slider.H updated Fl_Slider and Fl_Scrollbar documentation (STR #2156 - part 2) 2009-03-14 11:46:43 +00:00
Fl_Spinner.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Sys_Menu_Bar.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Tabs.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Text_Buffer.H UTF8: Fl_Text_Display and related: 2009-07-04 00:24:26 +00:00
Fl_Text_Display.H UTF8: Fl_Text_Display and related: 2009-07-04 01:09:43 +00:00
Fl_Text_Editor.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Tile.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Tiled_Image.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Timer.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Toggle_Button.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Toggle_Light_Button.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Toggle_Round_Button.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Tooltip.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
fl_types.h Updated doxygen docs for Fl_Input_ to get a greater insight into the code. I'll try to get full Unicode support in soon. The current code uses some interesting solutions ;-). 2009-04-18 18:52:59 +00:00
fl_utf8.h Updated doxygen docs for Fl_Input_ to get a greater insight into the code. I'll try to get full Unicode support in soon. The current code uses some interesting solutions ;-). 2009-04-18 18:52:59 +00:00
Fl_Valuator.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_Value_Input.H Modified all public widget draw methods to be protected. 2009-02-18 09:27:54 +00:00
Fl_Value_Output.H Modified all public widget draw methods to be protected. 2009-02-18 09:27:54 +00:00
Fl_Value_Slider.H Modified all public widget draw methods to be protected. 2009-02-18 09:27:54 +00:00
Fl_Widget.H Reworded description of calling the virtual draw() method for embedded 2009-04-12 09:40:59 +00:00
Fl_Window.H Added new Fl_Window:: flags() and methods: 2009-08-03 06:26:32 +00:00
Fl_Wizard.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_XBM_Image.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl_XPM_Image.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Fl.H Removed extra \\c from the Doxygen documentation. 2009-04-19 12:47:36 +00:00
forms.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
gl2opengl.h Initial revision 1998-10-06 18:21:25 +00:00
gl_draw.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
gl.h converted html tags to doxygen commands in opengl.dox 2009-04-09 20:44:31 +00:00
glu.h Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
glut.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
mac.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Makefile.in Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
math.h Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
names.h Added Mike's suggestion for more const correctness; 2009-03-31 22:41:10 +00:00
win32.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
x.H Changed the copyright to 2009 for header files. Still todo: src and test directory. 2009-01-01 16:11:32 +00:00
Xutf8.h More LGPL compliance for utf8 files.. some were hiding outside of xutf8 (STR#2085 cont'd) 2009-03-13 23:42:32 +00:00