mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-26 09:35:49 +01:00
- Changed ConvertFont et al. to WMEmphasizeFont, and added WMNormalizeFont()
This commit is contained in:
@@ -691,15 +691,15 @@ WMFont *WMBoldSystemFontOfSize(WMScreen *scrPtr, int size);
|
|||||||
|
|
||||||
XFontSet WMGetFontFontSet(WMFont *font);
|
XFontSet WMGetFontFontSet(WMFont *font);
|
||||||
|
|
||||||
WMFont * WMConvertFontToPlain(WMScreen *scr, WMFont *font);
|
WMFont * WMNormalizeFont(WMScreen *scr, WMFont *font);
|
||||||
|
|
||||||
WMFont * WMConvertFontToBold(WMScreen *scr, WMFont *font);
|
WMFont * WMStrengthenFont(WMScreen *scr, WMFont *font);
|
||||||
|
|
||||||
WMFont * WMConvertFontToUnbold(WMScreen *scr, WMFont *font);
|
WMFont * WMUnstrengthenFont(WMScreen *scr, WMFont *font);
|
||||||
|
|
||||||
WMFont * WMConvertFontToItalic(WMScreen *scr, WMFont *font);
|
WMFont * WMEmphasizeFont(WMScreen *scr, WMFont *font);
|
||||||
|
|
||||||
WMFont * WMConvertFontToUnitalic(WMScreen *scr, WMFont *font);
|
WMFont * WMUnemphasizeFont(WMScreen *scr, WMFont *font);
|
||||||
|
|
||||||
WMFont * WMGetFontOfSize(WMScreen *scr, WMFont *font, int size);
|
WMFont * WMGetFontOfSize(WMScreen *scr, WMFont *font, int size);
|
||||||
|
|
||||||
|
|||||||
@@ -479,16 +479,28 @@ changeFontProp(char *fname, char *newprop, int which)
|
|||||||
|
|
||||||
|
|
||||||
WMFont *
|
WMFont *
|
||||||
WMConvertFontToPlain(WMScreen *scr, WMFont *font)
|
WMNormalizeFont(WMScreen *scr, WMFont *font)
|
||||||
{
|
{
|
||||||
|
WMFont *newfont=NULL;
|
||||||
|
char fname[256];
|
||||||
|
|
||||||
if(!scr || !font)
|
if(!scr || !font)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return font;
|
snprintf(fname, 255, font->name);
|
||||||
|
changeFontProp(fname, "medium", 2);
|
||||||
|
changeFontProp(fname, "r", 3);
|
||||||
|
newfont = WMCreateNormalFont(scr, fname);
|
||||||
|
|
||||||
|
if(!newfont)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
return newfont;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
WMFont *
|
WMFont *
|
||||||
WMConvertFontToBold(WMScreen *scr, WMFont *font)
|
WMStrengthenFont(WMScreen *scr, WMFont *font)
|
||||||
{
|
{
|
||||||
WMFont *newfont=NULL;
|
WMFont *newfont=NULL;
|
||||||
char fname[256];
|
char fname[256];
|
||||||
@@ -508,7 +520,7 @@ WMConvertFontToBold(WMScreen *scr, WMFont *font)
|
|||||||
|
|
||||||
|
|
||||||
WMFont *
|
WMFont *
|
||||||
WMConvertFontToUnbold(WMScreen *scr, WMFont *font)
|
WMUnstrengthenFont(WMScreen *scr, WMFont *font)
|
||||||
{
|
{
|
||||||
WMFont *newfont=NULL;
|
WMFont *newfont=NULL;
|
||||||
char fname[256];
|
char fname[256];
|
||||||
@@ -528,7 +540,7 @@ WMConvertFontToUnbold(WMScreen *scr, WMFont *font)
|
|||||||
|
|
||||||
|
|
||||||
WMFont *
|
WMFont *
|
||||||
WMConvertFontToItalic(WMScreen *scr, WMFont *font)
|
WMEmphasizeFont(WMScreen *scr, WMFont *font)
|
||||||
{
|
{
|
||||||
WMFont *newfont=NULL;
|
WMFont *newfont=NULL;
|
||||||
char fname[256];
|
char fname[256];
|
||||||
@@ -546,8 +558,9 @@ WMConvertFontToItalic(WMScreen *scr, WMFont *font)
|
|||||||
return newfont;
|
return newfont;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
WMFont *
|
WMFont *
|
||||||
WMConvertFontToUnitalic(WMScreen *scr, WMFont *font)
|
WMUnemphasizeFont(WMScreen *scr, WMFont *font)
|
||||||
{
|
{
|
||||||
WMFont *newfont=NULL;
|
WMFont *newfont=NULL;
|
||||||
char fname[256];
|
char fname[256];
|
||||||
|
|||||||
Reference in New Issue
Block a user