1
0
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:
dan
2002-11-22 04:49:05 +00:00
parent 0bfa12a1fc
commit 18b3753227
4 changed files with 346 additions and 143 deletions

View File

@@ -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);