Change Log for the latest
XYplorer BETA version:
Code: Select all
v23.20.0117 - 2022-06-27 11:45
+ Scripting got a new function.
Name: Font
Action: Sets or gets any of the main application fonts.
Syntax 1: font([area=m], [name], [size], [bold], [italics])
area:
m: Main font [default].
Only this font supports arguments "bold" and "italics".
c: Controls font (aka "Buttons and Labels")
e: Editor font.
The switches can be combined, e.g. "mc".
name: Font name.
size: Font size.
Either absolute value (fractional values work),
or increase or decrease amount prefixed with + or -.
bold: Font bold (only for Main font).
0=off, 1=on; [omit]=keep
italics: Font italics (only for Main font).
0=off, 1=on; [omit]=keep
return: Definition of the current font (before any change).
Syntax 2: font(definition)
definition: ;-separated string of font properties as returned by this function.
area;name;size;bold;italics
Examples for Syntax 1:
text font("m", "Consolas", 12, 0, 1); //set main font to Consolas 12 italics, show old font
font(, "Segoe UI", 9, 0, 0); //set main font to the current factory default
font("e", , 12); //just change the size of the editor font
font("e", , "+2"); //just increase the size of the editor font ("+2" needs the quotes!)
font("mce", , 12); //yep, you can even set all 3 areas at once
status font(); //just show the current main font in the status bar
Examples for Syntax 2:
font("m;Consolas;12;0;1"); //set main font to Consolas 12 italics
font("m;Segoe UI;9;0;0"); //set main font to the current factory default
font("e;Courier New;9.75"); //set editor font name and size
font(";Courier New"); //set main font name
font(";Courier New;12"); //set main font name and size
font(";;12"); //set main font size
font(";;+2"); //increase main font size by 2 points
font(";;-2"); //decrease main font size by 2 points
font(";;;0;0"); //main font turn off bold and italics
font("mce;;9"); //yep, you can even set all 3 areas at once
To
update to this BETA version from XYplorer, hold down the
CTRL key while you click
Help | Online Support | Check for Updates. To
download it, choose a package: (1)
Installer Package, (2)
No-Install Package.
Note that BETA versions are work in progress and might contain fresh bugs. You have been warned. It's a good idea to backup your complete XYplorer settings (menu File | Settings Special | Backup Application Data Folder...) before running a new BETA version. This will also help in fixing any fresh bugs.