ZTree.com  | ZEN  | About...  

 Index   Back

Additional scripts to change Console font size while in Legacy mode   [Help!]

By: Laurent Duchastel     Montréal, Québec  
Date: Apr 14,2018 at 14:59
In Response to: Improved - F9 to switch back and forth between Win10 and legacy default. (Laurent Duchastel)

My computer is a Microsoft Surface. I love it.

Its native screen is 2736 x 1824 for 10,5" x 7" inches.
Font would be microscopic on all applications in not enlarged by 200% in Display settings.

The issue I always had with Legacy mode is that it does not enlarge console font as well. This result is super tiny ZTree, and all other console windows as well. The non-Legacy console windows has not this problem (but have the ugly color scheme and annoying console-wrapping)

The only solution was to manually change font size in shortcut properties to 28 or 36 instead of 16 when I was using Surface alone, and switch back to 16 when I was using with external 1980 x 1080 monitors. As I can switch between Surface-only and external monitors mode about a dozen times a day, this becoming annoying. This is why I avoided Legacy mode in the past.

Here three additional scripts for my newly found solution for using Legacy mode (previously in this thread) and tackle this specific issue of console font size in Surface-only mode.

::- 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

::- 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


Now very easy to change font size in Legacy mode, and it works for all consoles!

The decimal value of 1048576, 2359296, 1835008 have been found by trying different font size in ZTree while not being pinned on taskbar or having a shortcut. Under these circumstances, registry create a new branch under HKCU\Console with specific settings for that executable.


Laurent Duchastel

293 views      
Thread locked
 

Messages in this Thread

 
94,424 Postings in 11,918 Threads, 348 registered users, 6 users online (0 registered, 6 guests)
Index | Admin contact |   Forum Time: Sep 16, 2019 - 8:36 am EDT  |  Hits:28,643,005  (678 Today )
RSS Feed