STR #3448

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 | Post Text | Post File ]

STR #3448

Application:FLTK Library
Status:5 - New
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:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]

No files


Trouble Report Comments:

Post Text ]
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.
 
bottom left image   bottom right image

Return to Bugs & Features | Post Text | Post File ]

 
 

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