6 changeFontProp(char *fname
, char *newprop
, int which
)
8 char before
[128], prop
[128], after
[128];
20 if(part
==which
) bptr
= prop
;
21 else if(part
==which
+1) bptr
= after
;
28 snprintf(fname
, 255, "%s-%s%s", before
, newprop
, after
);
33 WMGetFontPlain(WMScreen
*scrPtr
, WMFont
*font
)
41 WMGetFontBold(WMScreen
*scrPtr
, WMFont
*font
)
47 snprintf(fname
, 255, font
->name
);
48 changeFontProp(fname
, "bold", 2);
49 newfont
= WMCreateNormalFont(scrPtr
, fname
);
56 WMGetFontItalic(WMScreen
*scrPtr
, WMFont
*font
)
62 snprintf(fname
, 255, font
->name
);
63 changeFontProp(fname
, "o", 3);
64 newfont
= WMCreateNormalFont(scrPtr
, fname
);
71 WMGetFontOfSize(WMScreen
*scrPtr
, WMFont
*font
, int size
)
73 if(!scrPtr
|| !font
|| size
<1)