DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L1809
Version: 1.1-current


The current implementation of fltk with XFT-2 support for the 1.1.x series
(and also the fltk2.x series, I believe) always returns the same default
font for gl_font() calls, regardless of the face or size requested by the
user.
This differs from the behaviour on other platforms, or under X with
non-XFT support (or even with XFT-1 support!) and is not very useful.

There are a number of other weaknesses in the XFT font loading that can
also be addressed.

Attached are a series of patches, designed to be applied incrementally,
each adding a little additional functionality to the core build. Please
consider these for addition to the 1.1.8 core.

patch1:
Adds better support to allow gl_font() to load fonts with selected face
and size when fltk is built against XFT-2 or later. I think this is pretty
much a "must have" addition.

patch2:
Builds on patch1, improving the basic XFT fontopen() code to gracefully
handle being passed XLFD style font names, as often happens when porting
code from a previous, non-XFT build standard.
The default XFT fontopen code will fail to open a reasonable font in that
case, this revised code should generally do the "Right Thing" if passed an
adequately well-formed XLFD name.
I think this is a "very useful" addition.

patch3:
Builds on patch2 to allow a comma separated list of XFT font names to be
passed to fontopen(), and forms a fontmatch pattern that finds the best
available match from the list. This is intended to ease porting code to
other platforms where the list of available fonts may not be known in
advance (several "likely candidates" can be passed in this case,
increasing the likelihood of getting a valid font match.)
I think this is a "nice to have" addition.

Thanks,
-- 
Ian


Link: http://www.fltk.org/str.php?L1809
Version: 1.1-current

_______________________________________________
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to