STR #3448

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 #3448

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:2 - Low, e.g. a documentation error or undocumented side-effect
Scope:2 - Specific to an operating system
Subsystem:X11
Summary:fl_text_extents() width not correct with Xft+Pango and internal italic/bold fonts
Version:1.4-feature
Created By:chris
Assigned To:AlbrechtS
Fix Version:1.4.0
Fix Commit:unknown
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text top right image
 
#1 chris
06:04 Jan 06, 2018
When FLTK is enabled for Pango, the bounding width of strings is not correctly calculated for FLTK's internal fonts, when used as BOLD and/or ITALIC variant.

This can be seen with unittests: Just change in unittest_text.cxx the first fl_font(FL_HELVETICA, 30) to fl_font(FL_HELVETICA_ITALIC) and (for better visibilty) add a character '/' to the end of the string.

The proof that only FLTK's internal fonts are affected: When mapping the FL_HELVETICA font to e.g. "IArial" then the result is correct.
 
 
#2 AlbrechtS
10:49 Dec 13, 2023
@Chris: is this still the case in Git master, and does this also apply if FLTK is using Cairo (either on X11 or on Wayland)?

... or can we close this STR?
 
 
#3 chris
23:31 Dec 13, 2023
This seems to be fixed now, either by FLTK or newer Pango libraries. Under Ubuntu 20.04 with Xft+Pango setting and above mentioned test case, fl_text_extents() is shown correctly.  
 
#4 AlbrechtS
08:42 Dec 14, 2023
@Chris: Thanks for your feedback. I'm closing the STR now.  
bottom left image   bottom right image

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