XForms: browser fonts

Rouben Rostamian (rostamian@umbc.edu)
Mon, 5 Oct 1998 15:21:35 +0000

# To subscribers of the xforms list from "Rouben Rostamian" <rostamian@umbc.edu> :

--
--PART-BOUNDARY=.1981005152135.ZM25940.math.umbc.edu
Content-Type: text/plain; charset=us-ascii

The manual is silent on the effect of @b in browser lines when the user has explicitlty specifies the browser font. Under default circumstances, browser lines beginning with @b are displayed in bold. But suppose we set:

#define MYFONT 33 /* some arbitrary font index */ fl_set_font_name(MYFONT, "6x13"); /* full XLFD font spec will also do */ fl_set_browser_fontstyle(obj, MYFONT); /* set browser font */

Then what is the effect of @b in a browser line?

Some experimentation indicates that @b causes xforms to call the font (MYFONT+1) if such a font exists. Is this an undocumented feature?

T.C., is there a chance to make this a permanent feature of xforms? Then the user can define

#define MYFONT 33 #define MYFONTBOLD 34 fl_set_font_name(MYFONT, "6x13"); fl_set_font_name(MYFONTBOLD, "6x13bold");

which will retain the functionality of the @b switch. By the same token, fonts (MYFONT+2) and (MYFONT+3) will refer to the oblique and boldoblique variants of the base font.

--
Rouben Rostamian <rostamian@umbc.edu>

--PART-BOUNDARY=.1981005152135.ZM25940.math.umbc.edu Content-Description: ~v Content-Type: text/plain ; charset=us-ascii Content-Disposition: attachment

rostamian@umbc.edu Posting to xforms is restricted to subscribed addresses. Please subscribe and repost.

--
Bob Williams, http://bob.usuf2.usuhs.mil/

--PART-BOUNDARY=.1981005152135.ZM25940.math.umbc.edu Content-Type: message/rfc822 Content-Disposition: inline

Received: by bob.usuf2.usuhs.mil; (5.65/1.1.8.2/28Apr95-0137AM) id AA04489; Sun, 4 Oct 1998 23:53:21 -0400 Date: Sun, 4 Oct 1998 23:53:21 -0400 From: <owner-xforms@bob.usuf2.usuhs.mil> Message-Id: <9810050353.AA04489@bob.usuf2.usuhs.mil> To: owner-xforms@bob.usuf2.usuhs.mil Subject: BOUNCE xforms@bob.usuf2.usuhs.mil: Non-member submission from ["Rouben Rostamian" <rostamian@umbc.edu>]

>From rouben@pc18.math.umbc.edu Sun Oct 4 23:53:17 1998 Received: from pc18.math.umbc.edu by bob.usuf2.usuhs.mil; (5.65/1.1.8.2/28Apr95-0137AM) id AA10748; Sun, 4 Oct 1998 23:53:17 -0400 Received: (from rouben@localhost) by pc18.math.umbc.edu (8.8.7/8.8.7) id XAA25597 for xforms@bob.usuf2.usuhs.mil; Sun, 4 Oct 1998 23:50:35 -0400 From: "Rouben Rostamian" <rostamian@umbc.edu> Message-Id: <981005035035.ZM25596@pc18.math.umbc.edu> Date: Mon, 5 Oct 1998 03:50:35 +0000 X-Mailer: Z-Mail (5.0.0 30July97) To: xforms@bob.usuf2.usuhs.mil Subject: browser fonts Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii

The manual is non-specific on the effect of @b in browser lines. Suppose we set:

int n = 33; /* some arbitrary font index */ fl_set_font_name(n, "6x13"); /* full XLFD font spec will also do */ fl_set_browser_fontstyle(obj, n); /* set browser font */

Then what is the effect of @b in a line?

Some experimentation indicates that @b causes xforms to look for font (n+1) if such font exists. Is this an undocumented feature?

T.C., is there a chance to make this a permanent feature of xforms? By the same token, fonts (n+2) and (n+3) will refer to the oblique and boldoblique variants of the base font.

--
Rouben Rostamian <rostamian@umbc.edu>

--PART-BOUNDARY=.1981005152135.ZM25940.math.umbc.edu--

_________________________________________________ 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/