veracrypt / VeraCrypt

Disk encryption with strong security based on TrueCrypt
https://www.veracrypt.fr
Other
7k stars 956 forks source link

Large fonts for 4k monitors #1060

Open evo11x opened 1 year ago

evo11x commented 1 year ago

Is it possible to add support for larger fonts for 4k monitors? because the options are very small.

Desired behavior

An option to be able to increase the font size

Your Environment

Windows 11, VeraCrypt 1.25.9, 64-bit

Thanks!

ghost commented 1 year ago

Veracrypt uses wxWidgets for its GUI.

Idrassi, if you need help implementing this feature with a new font, see the documentation here: https://docs.wxwidgets.org/3.0/classwx_font.html

To define a new font, use the wxFontInfo function to define attributes of built-in fonts on the user's system. I am unaware of any way for the user to change the font currently so this will need to be overcome before the actual fonts can be inserted. An example of a basic boolean check could be:

`isTimesNewRoman:1 isArial:0 . . .

Once the user selects the preferred font we then ask them for size.

"Size:xxx`

Alternatively, you may use a preexisting font by simply letting the user change the size and automatically reflect it in languages.xml (All languages preferred, but English, French, and Chinese users seem to be the most populous users)

When I have more time, I might create some pull requests or code snippets here to give away some leg-work to implement this assuming that idrassi confirms that he wishes to do so.