mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
Added 2 functions to retrieve the default system fonts:
WMDefaultSystemFont(WMScreen *scr) and WMDefaultBoldSystemFont(WMScreen *scr)
This commit is contained in:
@@ -15,6 +15,8 @@ Changes since wmaker 0.80.0:
|
|||||||
- Fixed textfields regarding interpretation of special keys with modifiers.
|
- Fixed textfields regarding interpretation of special keys with modifiers.
|
||||||
- Fixed some functions that accept a boolean flag as a paramater, to set only
|
- Fixed some functions that accept a boolean flag as a paramater, to set only
|
||||||
1 or 0 for the flag value, not the flag passed by the user.
|
1 or 0 for the flag value, not the flag passed by the user.
|
||||||
|
- Added 2 functions to retrieve the default system fonts:
|
||||||
|
WMDefaultSystemFont(WMScreen *scr) and WMDefaultBoldSystemFont(WMScreen *scr)
|
||||||
|
|
||||||
|
|
||||||
Changes since wmaker 0.70.0:
|
Changes since wmaker 0.70.0:
|
||||||
|
|||||||
@@ -718,6 +718,10 @@ void WMSetWidgetDefaultFont(WMScreen *scr, WMFont *font);
|
|||||||
|
|
||||||
void WMSetWidgetDefaultBoldFont(WMScreen *scr, WMFont *font);
|
void WMSetWidgetDefaultBoldFont(WMScreen *scr, WMFont *font);
|
||||||
|
|
||||||
|
WMFont* WMDefaultSystemFont(WMScreen *scrPtr);
|
||||||
|
|
||||||
|
WMFont* WMDefaultBoldSystemFont(WMScreen *scrPtr);
|
||||||
|
|
||||||
WMFont* WMSystemFontOfSize(WMScreen *scrPtr, int size);
|
WMFont* WMSystemFontOfSize(WMScreen *scrPtr, int size);
|
||||||
|
|
||||||
WMFont* WMBoldSystemFontOfSize(WMScreen *scrPtr, int size);
|
WMFont* WMBoldSystemFontOfSize(WMScreen *scrPtr, int size);
|
||||||
|
|||||||
@@ -268,6 +268,19 @@ WMFontHeight(WMFont *font)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
WMFont*
|
||||||
|
WMDefaultSystemFont(WMScreen *scrPtr)
|
||||||
|
{
|
||||||
|
return WMRetainFont(scrPtr->normalFont);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
WMFont*
|
||||||
|
WMDefaultBoldSystemFont(WMScreen *scrPtr)
|
||||||
|
{
|
||||||
|
return WMRetainFont(scrPtr->boldFont);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
WMFont*
|
WMFont*
|
||||||
WMSystemFontOfSize(WMScreen *scrPtr, int size)
|
WMSystemFontOfSize(WMScreen *scrPtr, int size)
|
||||||
|
|||||||
Reference in New Issue
Block a user