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

Problem in running RuleBender on HiDPI screens #218

Open
OleksiiR opened this issue Sep 5, 2020 · 6 comments
Open

Problem in running RuleBender on HiDPI screens #218

OleksiiR opened this issue Sep 5, 2020 · 6 comments

Comments

@OleksiiR
Copy link

OleksiiR commented Sep 5, 2020

Dear colleagues,

I have a problem in running RuleBender on a laptop with high resolution screen (high dots per inch, HiDPI). Everything related to RuleBender is very small and hardly readable. I found in internet that I have to pass -Dsun.java2d.uiScale=2 to the java virtual machine, but it is unclear how to do it, because RuleBender is a binary and not an edible script. The rest of java applications are scaled normally, because since since Java 9 the GDK_SCALE environment variable is used to scale applications, and only RuleBender uses java version "1.8.0_161".

Could you please help me to scale RuleBender?

OS: OpenSUSE 15.2
Desktop environment: KDE Plasma

Kind regards,
Oleksii Rukhlenko

@ASinanSaglam
Copy link
Contributor

Hi @OleksiiR

Can you try passing the argument to the RuleBender binary directly when you are running it? I tested passing the argument to RuleBender and it correctly recognized it on my end but I don't have a HiDPI screen to test the result.

Best,

@OleksiiR
Copy link
Author

OleksiiR commented Sep 7, 2020

Thank you for the reply. Yes, the argument passes, but it does nothing. Even if you do not have HiDPI screen, if this would work you would have seen bigger symbols in RuleBender. So, it must be passed in some other way.

BTW, I found the advice here: https://wiki.archlinux.org/index.php/HiDPI#Java_applications

Best regards,
Oleksii

@ASinanSaglam
Copy link
Contributor

I'm taking a look at this now. As a side note, you can edit RuleBender.ini to add in command line arguments to start up (though the uiScale argument doesn't seem to work for this issue).

@ASinanSaglam
Copy link
Contributor

ASinanSaglam commented Sep 7, 2020

OK, you need to use swt command line arguments for this and add the options right after -vmargs in the RuleBender.ini file

e.g. RuleBender.ini file

-startup
plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.401.v20161122-1740
-consoleLog
-data
@noDefault
-vmargs
-Dswt.enable.autoScale=true
-Dswt.autoScale=200
-Xms40m
-Xmx512m

I don't think the -Dswt.enable.autoScale=true is necessary, more information on -Dswt.autoScale=X options can be found here

Edit: I wouldn't copy paste the .ini file, this is for a windows machine, just edit yours and add the swt options.

@OleksiiR
Copy link
Author

OleksiiR commented Sep 8, 2020

Thank you! The icons look bigger, however, not all fonts are properly scaled. I manually changed all available fonts in Window->Preferences, but the some fonts are still small. Here is a screenshot.

RuleBender_screenshot

@ASinanSaglam
Copy link
Contributor

Hi @OleksiiR I'll take a look at the other issue in a second but did you ever resolve this? I haven't encountered this issue on my end and forgot to take another look after, sorry about 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