Re: [MOD] STR #3364: Fl_Text_Display: wrong text width calculation

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 
 All Forums  |  Back to fltk.bugs  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [MOD] STR #3364: Fl_Text_Display: wrong text width calculation Matthias Melcher Jan 27, 2022 top right image
 
[STR Closed w/Resolution]

Link: https://www.fltk.org/str.php?L3364
Version: 1.4-current
Fix Version: 1.4.0
Git Commit: cdb51045dda7076be33147cc8e9138035ad9b97e


Fixed in Git repository.

The implementation is a bit different. The text size calculations are
correct, but for proportional text, letters can overlap, and for italics,
letters can leak out of their bounding box.

This solution draws all backgrounds of a line first, and then renders the
text, so that nothing is clipped. Text can still leak, but it's not usually
visible (unless there is a partial line update).


Link: https://www.fltk.org/str.php?L3364
Version: 1.4-current
Fix Version: 1.4.0
Git Commit: cdb51045dda7076be33147cc8e9138035ad9b97e


Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]
 
 

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'.