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

UI scaling #24

Open
muhuk opened this issue Sep 18, 2022 · 6 comments
Open

UI scaling #24

muhuk opened this issue Sep 18, 2022 · 6 comments

Comments

@muhuk
Copy link

muhuk commented Sep 18, 2022

I am using a 4K monitor and at least a 125% scaling is necessary to make things readable. Is there a way to scale the UI?

(OS: Debian/Linux, just downloaded more-speech-0.1.0-SNAPSHOT-standalone.jar and run it.)

@muhuk
Copy link
Author

muhuk commented Sep 18, 2022

Both these commands work:

GDK_SCALE=2 java -jar more-speech-0.1.0-SNAPSHOT-standalone.jar

java -Dsun.java2d.uiScale=2 -jar more-speech-0.1.0-SNAPSHOT-standalone.jar

Unfortunately only integers seem to work with this param, 1.25 does nothing.

@unclebob
Copy link
Owner

I'll add a font-size to the config file.

@unclebob
Copy link
Owner

:default-font "COURIER-PLAIN-14"
:bold-font "COURIER-BOLD-14"
:small-font "COURIER_PLAIN-9"
Added to private/user-configuration as of release 202209201153

@muhuk
Copy link
Author

muhuk commented Sep 21, 2022

It works on some elements but does not scale other elements for me:

image

My user-configuration

{:export-user-profile
 {:export-after-days 7, :last-time-exported 1663494419},
 :import-metadata
 {:import-after-days 30, :last-time-imported 1663494226},
 :default-font "COURIER-PLAIN-24",
 :bold-font "COURIER-BOLD-24",
 :small-font "COURIER-PLAIN-18"}

I tried with both COURIER-PLAIN and COURIER_PLAIN (see small-font).

@muhuk
Copy link
Author

muhuk commented Oct 14, 2022

I think this should be re-opened.

@unclebob unclebob reopened this Oct 18, 2022
@unclebob
Copy link
Owner

OK, I've re-opened it.

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