How can I scale the JOSM GUI so its a bit more readable on a high resolution screen? See the attached picture for an illustration.

I'm guessing it might be some java environment variables, but which, and where do I set them?

I'm using Ubuntu 17.10.

asked 17 Dec '17, 16:03

FredrikLindseth's gravatar image

FredrikLindseth
666111830
accept rate: 13%

edited 31 Dec '17, 14:28


See https://josm.openstreetmap.de/wiki/Help/HiDPISupport

The first step is to be sure to use Java 9.

permanent link

answered 17 Dec '17, 16:06

don-vip's gravatar image

don-vip
30056
accept rate: 33%

It doesn't really say WHERE to set 'GDK_SCALE=2 java -jar josm.jar'. Just in my .bash_profile?

(17 Dec '17, 16:13) FredrikLindseth

In your environment, but this is only needed if it does not work out the box. Did you update to Java 9 first?

(17 Dec '17, 16:15) don-vip

where do you download Java 9?

(18 Dec '17, 19:31) skfd

@skfd: according to ubuntusers.de: just install package openjdk-9-jre (which is in universe, for Ubuntu 16.04 or later) using your usual package management tool. It may be good to uninstall other Java versions before. In general: see https://wiki.openstreetmap.org/wiki/Java_Runtime_Environment .

(18 Dec '17, 19:56) aseerel4c26 ♦
1

For Windows you should go to this link and click on the left "Download" under JRE (whatever that is). http://www.oracle.com/technetwork/java/javase/downloads/index.html

(18 Dec '17, 20:27) skfd

Will this only work by downloading the JAR and running it or can it be used when installing JOSM via a package manager/apt/ a ppa?

(01 Feb, 16:01) FredrikLindseth

@FredrikLindseth: I do not have ubuntu at hand (but am running Linux), but it also should work (theoretically it depends on what stuff the package builder did in addition to package the vanilla JOSM). The command mentioned on Help/HiDPISupport is a bash trick approach and requires you to run the jar directly (you would have to find out the path to the jar on your disk after package installation). Likely it will also work if you run the package's startup script for JOSM (likely named "josm") - just use GDK_SCALE=2 josm in a terminal window.

To run JOSM for example from your GUI the easiest way would be to set the environment variable GDK_SCALE=2 permanently, see Persistent_environment_variables. To check if it worked, open a terminal window and execute (without ") "echo $GDK_SCALE". It should return "2".

Please give feedback if and how it worked.

(01 Feb, 19:31) aseerel4c26 ♦

Yes! Thanks, skfd, simply downloading that and making sure you uninstall any previous versions of java does the trick!

(16 Aug, 04:48) brublanc
showing 5 of 8 show 3 more comments

In linux, if JOSM installed normally you can prepend a scaling factor like this:

export GDK_SCALE=2 && josm

This will only scale JOSM for this run, but you can create an alias

alias josm='export GDK_SCALE=2 && josm'

To run it like this every time. You can also set the scale in your .profile (in your home-folder), by adding

export GDK_SCALE=2

anywhere in your .profile and restarting bash (or source .bashrc).

Running with the 'export_GDK_SCALE=2 && josm' will scale up JOSM, but not every other program you have, but when setting the GDK_SCALE in your .profile every program using this GTK-setting will scale.

permanent link

answered 16 Sep, 10:17

FredrikLindseth's gravatar image

FredrikLindseth
666111830
accept rate: 13%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×474
×7
×3
×1
×1

question asked: 17 Dec '17, 16:03

question was seen: 1,193 times

last updated: 16 Sep, 10:17

powered by OSQA