FLTK logo

STR #2531

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | SVN ⇄ GIT ]

STR #2531

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:4 - High, e.g. key functionality not working
Scope:2 - Specific to an operating system
Subsystem:Core Library
Summary:Fl_Text_Display proportional text wobbles when selected on OS X
Version:1.4-feature
Created By:elaforge
Assigned To:matt
Fix Version:1.4.0
Fix Commit:56a79c4aad47b7be74f52a7ad7740eae555be5ee
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text  
 
#1 elaforge
15:11 Jan 19, 2011
To reproduce, create a small text file where each line begins with '//', which makes the editor make them proportional.  Then run test/editor on it and drag a selection around, paying attention to the text right of the selection.

It appears that the last selected character has a variable amount of its right edge cut off, but I'm just speculating.
 
 
#2 matt
15:24 Jan 19, 2011
Yes, the problem is, that FLTK used to use integers as character widths, but OS X requires floats. Not all of the code has been ported to use floating point coordinates.

A second issue: OS X creates ligatures on the fly, which means that the width of the string "fl" is less than width of "f" plus with of "l", because this character sequence (and many others) look better when touching.

Now, if you drag a selection across the "fl" string, and the edge of the selection is between the "f" and the "l", they will not be drawn in a sequence but individually to allow for color change. As a result, the rest of the line jumps by half a pixel or so.

It is possible to limit character size and positioning in OS X to integers, but it looks horrible (see FLTK 1.1 w/Carbon).
 
 
#3 manolo
07:59 Jan 24, 2011
I believe that with r.8305, the fix for STR 2530, the character wobble
has been improved, although it still occurs to a small extent.
Is that OK ?
 
 
#4 matt
13:25 Feb 08, 2011
This can be improved only when we decide to change the entire graphics API to floating point coordinats.  
 
#5 matt
15:52 Jan 31, 2019
Fixed in Git repository.

It took a while, but it is finally fixed.
 
     

Return to Bugs & Features ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.