XForms: Trouble with fonts and format characters

Tano Fotang (fotang@yahoo.com)
Thu, 17 Dec 1998 21:38:51 +0100

# To subscribers of the xforms list from Tano Fotang <fotang@yahoo.com> :

Good evening,
I set the browser font by doing the following:

if(fl_set_font_name(30, "-*-arial-*-*-*-*-*-?-*-*-*-*-*-*")<0)
exit(1);
fl_set_browser_fontstyle(mybrowser, 30);

The browser displays text correctly until one attempts to display a text
in bold or italic style:
"@bhello" ==>In SetFont [fonts.c 224] Bad FontStyle request 32:
"@ihello" ==>In SetFont [fonts.c 224] Bad FontStyle request 31:

Where are 31 and 32 from?
Let's set font style 31 to "-*-times new roman-*-*-*-*-*-?-*-*-*-*-*-*"
and see what happens:
The warning with request 31 disappears but "@ihello" is now displayed
using times new roman.

The user specifies the browser font in an X resource file. When they
later use "@b", I suppose that they expect to have a line displayed
using their font and in bold...
Tano Fotang.
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/