Re: XForms: browser fonts

T.C. Zhao (tc_zhao@yahoo.com)
Tue, 6 Oct 1998 16:39:38 -0700 (PDT)

# To subscribers of the xforms list from "T.C. Zhao" <tc_zhao@yahoo.com> :

Thanks for the note. Yes, @b causes the font number to be incremented
by FL_BOLD_STYLE (1). I do not see any reason to change this, so
it's safe to assume this behavior. I'll document this.

---Rouben Rostamian <rostamian@umbc.edu> wrote:
>
> 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>
> >
> rostamian@umbc.edu
> Posting to xforms is restricted to subscribed addresses.
> Please subscribe and repost.
>
> --
> Bob Williams, http://bob.usuf2.usuhs.mil/
>
>
>
> ATTACHMENT part 3 message/rfc822
>
> >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>
>
>

_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at /cgi-bin/exit-to?http://mail.yahoo.com

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