U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » Look and Chameleon Technology » Text scaling in U++
Re: Text scaling in U++ [message #60769 is a reply to message #60767] Fri, 06 September 2024 14:58 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
koldo wrote on Fri, 06 September 2024 12:28
Greetings to all

I'm getting older, and I'm more and more sensitive to the problems of people with poor eyesight.

Do you know if it is possible to change the text scaling, in the code, without depending on the scaling used by the operating system desktop?


GUI_APP_MAIN {
	SetStdFont(Arial(40));
	PromptOK("Is this fine?");
}


Note: What we do without using SetStdFont is that we read that font from OS - that among other issues means we read "scaled" value. Then all layouts are scaled on ratio between standard font and "design font". Then if font is bigger then certain threshold, UHD icons become active (either dedicated or synthetised).
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Colored text in Button
Next Topic: Arrows in Win11 scrollbar disappeared
Goto Forum:
  


Current Time: Sat Jun 13 17:53:14 GMT+2 2026

Total time taken to generate the page: 0.00665 seconds