| [ Return to Bugs & Features | Post Text | Post File | Prev | Next ]
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: | |
Trouble Report Files:
[ Post File ]No files
Trouble Report Comments:
[ Post Text ]
|
#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. | |
[ Return to Bugs & Features | Post Text | Post File ]
|
| |