sulakshm / superputty

Automatically exported from code.google.com/p/superputty
MIT License
1 stars 0 forks source link

On High Resolution Screen Putty Font Size Is Huge #427

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use a laptop with a high res display (lenovo yoga 2 pro) 3200x1800
2. Open SuperPutty
3. Open an SSH session

What is the expected output? What do you see instead? The font size should be 
10pt, it is some randomly large font.  Simply going to the settings of Putty 
and just hitting apply fixes it.  You don't actually have to change anything, 
just simply hit apply.

What version of the product are you using? On what operating system? I am usig 
version 1.4.0.4.

Please provide any additional information below. I am running windows 8.1 
enterprise.

Original issue reported on code.google.com by emel...@gmail.com on 6 May 2014 at 2:02

GoogleCodeExporter commented 8 years ago
Hi,

I was able to work around this issue. Open putty, create a new session, modify 
the font size. On your super putty edit the connections and under Putty profile 
select the session that has the small font size.

For me courier with 5 size works great!

It's a pretty way as well if you want to modify the font color

Original comment by n.kallik...@gmail.com on 26 May 2014 at 6:55

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
That works - but the program is still broken...if after opening the session, 
simply right click the tab and go to 'change settings' and do nothing other 
than click 'apply' it actually changes the font to size 5...whatever SuperPuTTY 
is doing as a default behavior on a hi-res screen is not correct.  It basically 
doubles the size of the font.  The work around is fine as long as you make no 
changes to the PuTTY session after the fact and hit the 'apply' button.  This 
bug should be easy enough to fix if the right person works on it...

Original comment by emel...@gmail.com on 27 Aug 2014 at 1:04

GoogleCodeExporter commented 8 years ago
I'm having issues with this too on a retina macbook. HUGE font

Original comment by deviants...@gmail.com on 27 Aug 2014 at 9:20

GoogleCodeExporter commented 8 years ago
Short answer: The best solution I have is on Windows, right-click on 
SuperPutty.exe, go to the Compatibility tab, and disable DPI awareness.  
SuperPutty will look a little ugly when you do this though.

Longer answer: I spent many hours looking into this, tracing and editing the 
source code for SuperPutty, Putty, and competitors to SuperPutty to try to 
figure out what is going wrong and how to fix it.  Using Procmon (API calls) 
and Spy++ (window messages) to debug.  Implementing code from Stackoverflow.  I 
was unable fix.  Good luck to the next lost soul that attempts this. And please 
tell me how on earth you fixed it if you do.

Original comment by 0xdabba...@gmail.com on 29 Dec 2014 at 6:30

GoogleCodeExporter commented 8 years ago
OMFG - @Oxdabba...@gmail.com I could bloody kiss you. Literally like a massive 
mankiss, right on the chops. You, Sir, are the King of Men.

Original comment by mattroge...@gmail.com on 7 Jul 2015 at 9:39

angwonson commented 8 years ago

I use MTPutty and I have same issue. So just making a putty setting with a super small font doesn't quite do the trick, especially since half the time my laptop with 4k display is docked and my external monitors are not 4k. Anyway, 2 things I noticed:

CaCtus491 commented 7 years ago

In my case the best solution I've found to this is to set my primary monitor as one of my external monitors then reboot. Note that without the reboot I didn't see any improvements.

I have a Surface Book (3000x2000 at 200% DPI scaling) and 2x Dell u2715h (2560x1440 at 100% DPI scaling).

Before the change:

  1. With the Surface Book as the primary monitor (set under display settings in control panel), I get the large font issue.
  2. In addition to this, if I maximise SuperPUTTY on a Dell monitor with a single session open, the Putty tab is visible, but the Putty session is not (i.e., I see the grey background of SuperPUTTY). There seems to be a certain Putty session size when this happens, as with a single session I can slowly decrease the window size of SuperPUTTY until a point when the Putty session appears again. This does not happen with more than one Putty session open and laid out in a split window view.
  3. Finally, I don't see any targets when dragging a tab to create a new split blue, but I do get the blue highlight to indicate when I'm over a target, so I usually drag to the middle of the screen then move up / down / left / right a little until I get the split I'm after.

After the change, points 1 and 2 above are solved - Putty text size is correct, plus a single full window Putty session displays correctly. The issue in point 3 persists on the Dell monitors, but not on the Surface Book.

It could be that having the primary monitor at 100% scaling is what has improved things for me, so may not be of use to everyone, but hopefully it will help others.

jogurt8006 commented 7 years ago

Can someone implement a button to load on all sessions the default putty setting - so you can address the scaling issue with one click

mpraki commented 7 years ago

Delete the existing Putty sessions from Super Putty and open Putty directly to change the font size to 6 or 7 and save the config. Now go back to Super Putty and re-import Putty configs. This worked for me.

tlsimmons88 commented 6 years ago

Short answer: The best solution I have is on Windows, right-click on SuperPutty.exe, go to the Compatibility tab, and disable DPI awareness.
SuperPutty will look a little ugly when you do this though.

Longer answer: I spent many hours looking into this, tracing and editing the source code for SuperPutty, Putty, and competitors to SuperPutty to try to figure out what is going wrong and how to fix it. Using Procmon (API calls) and Spy++ (window messages) to debug. Implementing code from Stackoverflow. I was unable fix. Good luck to the next lost soul that attempts this. And please tell me how on earth you fixed it if you do. Original comment by 0xdabba...@gmail.com on 29 Dec 2014 at 6:30

The fix I found to the "ugly" part on Windows 10. When you check the "Override High DPI scaling behavior. Scaling performed by:"
Change the drop down from "Application" to "System".

This gives you 0xdabba...@gmail.com's fix listed above and fixes the gui for you

codyherzog-zz commented 6 years ago

I manually edited the SuperPutty 'Sessions.xml' file to switch all sessions to the default putty config, as in:

PuttySession="Default Settings"

I then set my Putty default settings to a 4 pt font, saved the settings, and then it looked OK.

exjmc commented 6 years ago

Just wanted to comment and thank everyone in this chain, the huge-font thing was killing me! I found success by going to the MTPuTTY.exe file or the SuperPuTTY.exe (I tested with both) in File Explorer, right-click and select Properties, click the Compatibility tab, click the "Change high DPI settings" button, click the "Override high DPI..." check box, and select "System (Enhanced)" from the drop-down. (This is on Windows 10, ver 1803 build 17134.254)

This has been killing me!!! So happy to have it fixed!!!

HRC4Prison commented 6 years ago

@0xdabba...@gmail.com @exjmc many thanks!!!!
If someone else caught this please correct me. @0xdabba...@gmail.com post got me started and I see the uglyness. I was setting the overide to "application" Then I read @exjmc who achieved with "System (Enhanced)". Testing "System" did nothing.

The System Enchaced got me thinking as I wasnt happy with the loss of full tab and views but know the system was in control, given using "system" was a fail, I also tick box to enable the program DPI and set it to "I open this program" and both the annoying change settings steps and the proper look and feel came back 100%. supperputty_exe-dpi-settings

MS Surface Pro book 4 16gb RAM / 500g SSD / i7-8650 Win Microsoft Windows [Version 10.0.17134.345]

End result:

image

dilipddba commented 5 years ago
SuperPuttyIssue

These setting just worked fine for me. Just give it a try

akhileshcs005 commented 5 years ago

MTPutty_Font_Issue

This helped me on windows 10 for MTPutty.