[comp.windows.open-look] OblongButtonWidget Fonts

oladmin@magpie.unify.com (Open Look Mailing list admin) (03/27/91)

This was mistakenly posted to openlook-owner, so I am forwarding
it the the right list (openlook@unify.com).

Stuart Pook writes:
>I am trying to change the font of my OblongButtonWidget in OLIT.
>The button ignores my '*font: ...' in my resource file, it ignores
>a new font passed to it at initialization time and it ignores a
>XtSetValues with a new FontStruct.  Why is this?  How do I change
>the font in the buttons (I need to do this so that I can display
>8-bit characters)?
>
>Stuart Pook
>(stuart@genethon.fr)

merlyn@attunix.att.com (Steve Humphrey) (03/28/91)

> I am trying to change the font of my OblongButtonWidget in OLIT.
> The button ignores my '*font: ...' in my resource file, it ignores
> a new font passed to it at initialization time and it ignores a
> XtSetValues with a new FontStruct.  Why is this?  How do I change
> the font in the buttons (I need to do this so that I can display
> 8-bit characters)?

My apologies for this problem. The initial releases of the OPEN
LOOK toolkit had ``hardwired'' fonts for the buttons, mainly
because we had a not-so-good method of drawing the oblong
outlines. (The outlines couldn't stretch to accommodate an
arbitrary font, so we fixed the font.) The OPEN LOOK Release 4
toolkit has fixed this problem, and any font can be used.

OpenWindows 2.0 has the problem, the next release won't.

Steve Humphrey
UNIX System Laboratories