https://bugs.documentfoundation.org/show_bug.cgi?id=150960

--- Comment #1 from Hossein <hoss...@libreoffice.org> ---
Using the below parameter, one can change the scaling for a Java application
via JRE startup parameters:

 java -Dsun.java2d.uiScale=2.0 App

Java 9 might be required for this option.
https://openjdk.org/jeps/263

I have tested the above parameter by adding it to the LibreOffice settings. I
went to "Tools > Options > Advanced > Parameters", then added
"-Dsun.java2d.uiScale=2.0" as the parameter. After that, I opened the "Macros >
Organize Macros > BeanShell", selected a macro from the tree, then clicked
"Edit". In this way, the window was shown with 2x scaling.

To fix the issue and achieve automatic scaling, one can detect the scaling via
GDK_SCALE or other means in other platforms, and then apply the scaling factor
using the uiScale parameter, which also accepts fractional values for the
scaling.

On the other hand, it would be possible to implement the scaling inside our
application too. For example, IntelliJ IDEA has internal scaling capabilities:
https://youtrack.jetbrains.com/issue/JBR-3757
Increasing the font size would be part of this approach.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to