mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-01 05:25:48 +01:00
- added WMCopyFontWithChanges() a more generic and powerful function, meant
to replace WMNormalizeFont(), WMEmphasizeFont(), WMStrenghtenFont(), WMUnemphasizeFont() and WMUnstrenghtenFont() which are now obsolete and were removed.
This commit is contained in:
@@ -604,6 +604,16 @@ testText(WMScreen *scr)
|
||||
WMSetTextHasVerticalScroller(text, True);
|
||||
WMSetTextEditable(text, False);
|
||||
|
||||
if (1) {
|
||||
WMFont *font, *ifont;
|
||||
|
||||
font = WMDefaultSystemFont(scr);
|
||||
ifont = WMCopyFontWithChanges(scr, font, WFAEmphasized);
|
||||
WMSetTextDefaultFont(text, ifont);
|
||||
WMReleaseFont(font);
|
||||
WMReleaseFont(ifont);
|
||||
}
|
||||
|
||||
if(file) {
|
||||
char buf[1024];
|
||||
|
||||
@@ -1295,6 +1305,7 @@ main(int argc, char **argv)
|
||||
|
||||
testFontPanel(scr);
|
||||
|
||||
|
||||
#if 0
|
||||
testColorPanel(scr);
|
||||
testScrollView(scr);
|
||||
|
||||
Reference in New Issue
Block a user