ZTree.com  | ZEN  | About...  

 Index   Back

[Q] Changing display fonts?   [Q]

By: Laurent Duchastel     Montréal, Québec  
Date: May 05,2021 at 14:04
In Response to: [Q] Changing display fonts? (GoSlow2GoFast)

> > Is there a way to change the font used by ZTW ??
> >
> > I have a large screen display 1920x1080 but I find it hard to read
> the
> > ZTW text, is there a way to make the font bolder ??
> >
> > Regards,
> > Bob
>
> Yes, but you don't do it in the Ztree settings, rather the Properties
> of the command window that Ztree runs in. Just start Ztree as you
> normally do, then right mouse click on the icon in the upper left of the
> window. Select Properties, and then the Font tab. Change font settings
> as desired (and perhaps window size, and then be sure and say Okay or
> Save so the changes get used the next time you run Ztree.

In addition, it is possible to automate change of size fonts with some F9 scripts.

I have both a Surface Pro and a desktop. On the Surface, regular font is far below readability, much too small. Therefore I enlarged it. But back to desktop and because I share a single ZTree installation for both computers, changed font is gigantic. So I have to turn it back. Regularly

In addition to that, I don't like new Win10 console settings for colors when using ZTree. So, I also change it on-the-fly when required.

By trial and error, I created these five F9 scripts to change back and forth my settings.


::- ColorTools (Legacy, pre-Win10 default)
echo off
:: Enable Legacy mode on every console (no text wrapping, pre-Win10 default)
reg add HKCU\Console /v ForceV2 /t REG_DWORD /d 0 /f
:: Change to Consolas font, which is new Win10 default, but not legacy default
reg add HKCU\Console /v FaceName /t REG_SZ /d "Consolas" /f
:: Change default console color scheme to "cmd-leagcy" (pre-Win10 default)
:: Requires: Colortool.exe
:: https://blogs.msdn.microsoft.com/command...ducing-the-windows-console-colortool/
#ZTTools\Colortools\colortool.exe -d cmd-legacy
echo Please quit ZTreewin and restart
pause


::- ColorTools (Campbell, new Win10 default)
echo off
:: Disable Legacy mode on every console (= text wrapping, Win10 default)
reg add HKCU\Console /v ForceV2 /t REG_DWORD /d 1 /f
:: Change to Win10 default font
reg add HKCU\Console /v FaceName /t REG_SZ /d "__DefaultTTFont__" /f
:: Change default console color scheme to "campbell" (new Win10 default)
:: Requires: Colortool.exe
:: https://devblogs.microsoft.com/commandli...ducing-the-windows-console-colortool/
#ZTTools\Colortools\colortool.exe -d campbell
echo Please quit ZTreewin and restart
pause


::- Enlarge font while in 2736x1824 (Surface)
echo off
:: Change font size to big while Legacy mode is on and display is on Surface only (2736x1824)
reg add HKCU\Console /v FontSize /t REG_DWORD /d 1835008 /f
echo Please quit ZTreewin and restart
pause

::- Enlarge Even more font while in 2736x1824 (Surface)
echo off
:: Change font size to super big while Legacy mode is on and display is on Surface only (2736x1824)
reg add HKCU\Console /v FontSize /t REG_DWORD /d 2359296 /f
echo Please quit ZTreewin and restart
pause

::R Restore default font
echo off
:: Restore font size to default (non-Legacy console will adapt if Surface monitor only, otherwise size ok for 1980x1020)
reg add HKCU\Console /v FontSize /t REG_DWORD /d 1048576 /f
echo Please quit ZTreewin and restart
pause



Note that correct numbers for FontSize registry setting were found by trials and errors changing font size in console's Properties as explained in previous post.


Laurent Duchastel

134 views      
 

Messages in this Thread

 
95,403 Postings in 12,036 Threads, 350 registered users, 103 users online (0 registered, 103 guests)
Index | Admin contact |   Forum Time: Jun 25, 2021 - 12:44 pm UTC  |  Hits:40,436,274  (14,695 Today )
RSS Feed