Browse Source

Added glass.gtk.uiScale entry

Björn Ritzl 4 years ago
parent
commit
87d4b9c440
1 changed files with 9 additions and 0 deletions
  1. 9 0
      docs/en/shared/linux-faq.md

+ 9 - 0
docs/en/shared/linux-faq.md

@@ -7,6 +7,15 @@ $ gsettings set org.gnome.desktop.interface scaling-factor 2
 $ ./Defold
 $ ./Defold
 ```
 ```
 
 
+A: An alternative solution, especially when you wish to scale up by a fraction, is to modify the `Defold/config` file and on the `vmargs` line add `glass.gtk.uiScale`: [source](https://forum.defold.com/t/4k-hidpi-monitor-support-solved/64108/12?u=britzl)
+
+```
+vmargs = -Dglass.gtk.uiScale=1.5,-Dfile.encoding=UTF-8,...
+vmargs = -Dglass.gtk.uiScale=175%,-Dfile.encoding=UTF-8,...
+vmargs = -Dglass.gtk.uiScale=192dpi,-Dfile.encoding=UTF-8,...
+```
+
+More on this value in the [Arch Linux HiDPI wiki article](https://wiki.archlinux.org/title/HiDPI#JavaFX).
 
 
 #### Q: Why does mouse clicks on Elementary OS go through the editor onto whatever is below?
 #### Q: Why does mouse clicks on Elementary OS go through the editor onto whatever is below?