Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KaTrain 1.6.0 Beginners' workaround for persistent font scaling issue (solved) #250

Closed
David53bcg opened this issue Nov 28, 2020 · 1 comment

Comments

@David53bcg
Copy link

David53bcg commented Nov 28, 2020

v1.6.0 apparently addresses a reported font scaling issue in the case of very high screen resolutions.

Unfortunately, the issue persisted on my 3000 x 2000 resolution laptop: the typescript within the vital Info/Details/Notes panels was so small as to be all but illegible.

sanderland was very helpful in suggesting a workaround for as long as the issue persists. This involves upscaling KaTrain's embedded type size instruction by entering a separate, so-called 'environmental variable', which safely overrides the downloaded source code. (Perhaps sanderland will confirm here or in FAQ whether the same solution works with the normal download package, i.e. without having to resort to running with the source code instead.)

You first have to set the new variable, then run KaTrain. Here are the practical details, which are working well with the source code package:

  1. From Desktop, right-click to create a New>Shortcut.
  2. Right-click on the resulting Shortcut and open its Properties.
  3. Enter the following in the 'Target' box: C:\Windows\System32\cmd.exe /k set KIVY_METRICS_FONTSCALE=2 & C:[FilePathTo\katrain.exe]
  4. The easiest way to find the complete and correct file path for KaTrain, is to right-click on the .exe file, open its Properties, click the Security tab and then copy the full file path you'll see there.
  5. Finally, copy this instruction into the 'Start in' box: %HOMEDRIVE%%HOMEPATH%
  6. Close the Shortcut - or stick around to change the icon to something nicer than the Shortcut default.

You'll find that the panel problem is resolved very well, though there is a tradeoff in that the enlarged type size unavoidably overlaps on some of the other settings screens. But it's definitely worth trying. For one thing you don't have to open the CMD window every time and type in any complicated stuff. For another, you aren't risking unintended consequences in other apps using KIVY-related typefaces by making a semi-permanent change in the global Settings>Environmental Variables panel: using the shortcut, the KIVY adjustment is wiped out when you close the CMD window which the shortcut opens 'automatically'.

Thanks again to sanderland for a great GUI - and for his indispensible assistance.

@sanderland
Copy link
Owner

Linked this in the readme/FAQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants