Wrong font-size aft...
 
Notifications
Clear all

We appreciate the contributions many of you have been able to make towards repairing the storm damage and keeping a roof over our heads. With your help we’ve been able to complete much of the critical work. There is still work to be done to secure the house and your continued support will be a huge help.

Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.

[Closed] Wrong font-size after startup

10 Posts
2 Users
0 Reactions
1,796 Views
(@thebonezone)
Active Member Registered
Joined: 4 years ago
Posts: 8
Topic starter  

Hi,
first, the expected Metadata:

Windows: Windows 10 20H2
Desktop Info: 3.3.1

Snippet from config.ini: (complete options block)

[options]

font-face=Arial
font-size=11
#cleartype=1

# size and position
monitor-mode=1
top=0
right=0
nav=0
#formcolor=501020

# logging
log=desktopinfo.log
log-level=debugonerror

# misc
#ignore-setting-change=1

#[screen-saver]
#font-size=16
#centerv=1
#centerh=1
#formcolor=501020
 

The Problem:
I put a link of Desktop Info in the autostart folder of Windows for automatic startup. The program comes up with the wrong font-size. I guess it must be 14 or 16. Too big to fit. If i resave the desktopinfo.ini (inserting or deleting a blank) it reconfigure to the expected font-size of 11. Thats a pesky workaround.
I work with a external Monitor and the Notebook display.

Any help/tips are really appreciated.


   
(@thebonezone)
Active Member Registered
Joined: 4 years ago
Posts: 8
Topic starter  

PS.: I tried the commented options active/inactive no change of the behaviour.


   
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 1926
 

That's a curious issue. Which startup folder are you using? Have you tried starting it from Task Scheduler?


   
(@thebonezone)
Active Member Registered
Joined: 4 years ago
Posts: 8
Topic starter  

Indeed curious and annyoing.

I used [win] + r -> shell:startup
that brings up the folder:
C:Users[username]AppDataRoamingMicrosoftWindowsStart MenuProgramsStartup

I will explore the Task Scheduler way and report the outcome.


   
(@thebonezone)
Active Member Registered
Joined: 4 years ago
Posts: 8
Topic starter  

The results after some further tests.

Using Task Sheduler = same result.

I can reproduce it on every restart of the DesktopInfo Process. It comes up with the wrong font-size after saving the ini file again - redraw to correct font-size.

I have recorded it, with debug option on. But i fear there is nothing unusal to see?


   
(@thebonezone)
Active Member Registered
Joined: 4 years ago
Posts: 8
Topic starter  

trying logfile as zip...


   
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 1926
 

It is related to font scaling on a high dpi monitor. I notice your monitor is set to 125% which causes the font size to scale up. This is how it is supposed to work. I think the actual bug is that it scales back down again when you save/reload, it shouldn't do this, it should remain scaled up.

If you need it to look the same as it would on a 100% monitor then you probably want to disable automatic scaling, page 14:

[options]
auto-scale=0


   
(@thebonezone)
Active Member Registered
Joined: 4 years ago
Posts: 8
Topic starter  

That was it. If i set the option you mentioned it works.

Reading the manual carefully could help. I read it, but oversee this option, or didn´t bring it together with my issue.

Anyway, thank you for your support. Great tool, keep it running.

PS.: To my complete luck, i looking for an option to show the acutal outgoing tcp connections.
aka: netstat -f - Would be the CMD item the right way to realize it?


   
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 1926
 

yes. be careful, this command can take a long time to return if using the -f switch.

CMD=interval:600,code-page:65001,file:cmd.exe,parameters:/C netstat -f,wide:1

You can filter on the external host by using the "find" pipe command:

CMD=interval:600,code-page:65001,file:cmd.exe,parameters:/C netstat -f | find "10.0.0",wide:1

   
(@thebonezone)
Active Member Registered
Joined: 4 years ago
Posts: 8
Topic starter  

I tried it out. But it seems thats not a practical way. As you said it took a long time to execute the command. Meanwhile the charts are frezed and it looks like the Monitor hangs.

Its obviously a problem of the netstat command and it implementation. (Not performance trimmed)

A solution might be, if the Montior load the CMD item asynchronously. But i am happy as it.


   
Glenn's Page