[comp.windows.open-look] Xview panel bold font

devil@diablery.10A.com (Gil Tene) (04/16/91)

Hello OpenPeople.

HOW DO YOU SET THE font OF text items labels IN panels ?

I am an Xview hacker trying to set the font for text item labels
(and other labels) in an Xview panel. I have done some serious
Xview hacking, and know that this font is internally known in the
Xview sources as panel->bold_font, and that the code in p_set.c 
sets it using the following :

    panel->bold_font = (Pixfont *) xv_find(panel_public, FONT,
        FONT_FAMILY, xv_get(panel->std_font, FONT_FAMILY),
        FONT_STYLE, FONT_STYLE_BOLD,
        FONT_SIZE, font_size,
        0);
    if (panel->bold_font == NULL) {
        xv_error(NULL,
                 ERROR_STRING,
		     "Unable to find bold font; using standard font",
                 ERROR_PKG, PANEL,
                 0);
        panel->bold_font = panel->std_font;
    }  

Problem is, no matter what I use as the font for the panel
(default, or -fn courB11, or anything else) I always seem
to get the same font (family) for the Bold font. The font
scale does change according to std_font size, but the
family is a bit stubborn. The other strange thing is that
I never get the "Unable to find..." warning message, no
matter what crimes I try to commit.

Anyone out there know how to kick the font in "nicely" ?
Is the xv_find call (above) not doing it's proper job?

Any help appreciated, with AdvThanks,

-- Gil.
-- 
--------------------------------------------------------------------
-- Gil Tene			"Some days it just dosn't pay      -
-- devil%imp@uunet.uu.net	   to go to sleep in the morning." -
-- devil@diablery.10A.com 					   -
--------------------------------------------------------------------