I created some macros (see attached) that call _change_all_wfonts() and/or _default_fonts(), but they don't always seem to be working.
In all cases, I try to run either:
font-size-test1 12
or
font-size-test2 12
The argument is the font size. You can also try other font sizes besides 12 in case you are already at size 12 and want to see it change.
font-size-test1 uses _change_all_wfonts() while font-size-test2 uses _default_font()
When I say "fail", what I mean is that the actual font size on the editor window (with C++ source file open) does not change, however if I go into Tools->Options->Appearance->Fonts, the font size shown there has the right value, but the font size on the screen in the actual window never changed and does not match what is in Tools->Options->Appearance->Fonts.
Summary of tests and failures:
In Linux, with cfg=CFG_UNICODE_SOURCE_WINDOW
- font-size-set1 12 works properly
- font-size-set2 12 fails
In Linux, with cfg=CFG_WINDOW_TEXT
- font-size-set1 12 works properly
- font-size-set2 12 fails
In Windows, with cfg=CFG_UNICODE_SOURCE_WINDOW
- font-size-set1 12 fails (however the font in "search results" window seems to sometimes change
- font-size-set2 12 fails
In Windows, with cfg=CFG_WINDOW_TEXT
- font-size-set1 12 works properly
- font-size-set2 12 fails
I am using:
Windows: 21.0.3 with no hotfixes
Linux: 21.0.3 with hotfix 1
Also, what is the difference between CFG_UNICODE_SOURCE_WINDOW and CFG_WINDOW_TEXT? Why in Linux do both work for _change_all_wfonts(), but in windows only CFG_WINDOW_TEXT works for _change_all_wfonts() while CFG_UNICODE_SOURCE_WINDOW fails?
Thanks,
Rob