> % fc-match " sans"
> DejaVuSans.ttf: "DejaVu Sans" "Book"
> 
>       I forget what the leading space is for.. one of the 
> FLTK core folks
>       can probably remind us.


The leading space, as used in font names within fltk, is a legacy thing
(still supported) whereby you can specify some limited font attributes
as part of the name. But it is a fltk-specific thing, most other font
loaders simply ignore the leading space.

Within fltk, if you want a bold sans font, then asking for "Bsans" ought
to work, italic would be "Isans", and bold+itlaic is "Psans". Plain sans
is " sans". Note that "sans" also works - you only really need the
leading space if the font name happens to begin with "B", "I" or "P"...

In general, especially with XFT, or on win32 or OSX hosts, it is
probably better to give the actual font-name of the font you want,
however, rather than using the substitution name. That way you have some
control over what font you actually get, whereas the substitution may
vary considerably from platform to platform.


SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to