Modify

Opened 10 years ago

Closed 10 years ago

Last modified 6 years ago

#11752 closed defect (worksforme)

mappaint.fontsize advanced preference doesn't change the font size

Reported by: Sylve Owned by: Sylve
Priority: normal Milestone:
Component: Core mappaint Version: latest
Keywords: mappaint.fontsize Cc:

Description

Hi,

I find that the font size of JOSM (the mapping window) is way too small by default. So I changed the value mappaint.fontsize to 12, and even 16, but there is no effective change, even when I relaunch JOSM.

Is there any way to overcome this problem?

Regards,

Sylve

Attachments (2)

JOSM.png (599.8 KB ) - added by Sylve 10 years ago.
ChangeFontSize.mapcss (236 bytes ) - added by Klumbumbus 10 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 by Don-vip, 10 years ago

Can you please attach a screenshot? Thanks.

comment:2 by Don-vip, 10 years ago

Owner: changed from team to Sylve
Status: newneedinfo

by Sylve, 10 years ago

Attachment: JOSM.png added

comment:3 by anonymous, 10 years ago

Sorry for the mistake. I just added a screenshot of the problem. This one was taken with the

mappaint.fontsize

key set to 16. But it do not change anything if I put it to 8, to 12, etc.

Here are also some informations that may be useful:

What steps will reproduce the problem?

  1. Change
    mappaint.fontsize
    

key to any high number (e.g. 16).

  1. Relaunch JOSM.

What is the expected result?

The effective map font size would be 16.

What happens instead?

The effective map font size is still way too small, there is no change.

Please provide any additional information below. Attach a screenshot if possible.

I am using GTK+ theme, but it seems to be not related at all.

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2015-06-16 21:45:58
Last Changed Author: Don-vip
Revision: 8491
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Relative URL: ^/trunk
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2015-06-16 23:27:08 +0200 (Tue, 16 Jun 2015)
Last Changed Rev: 8491

Identification: JOSM/1.5 (8491 fr) Linux Debian GNU/Linux 8.1 (jessie)
Memory Usage: 165 MB / 1753 MB (60 MB allocated, but free)
Java version: 1.7.0_79, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u79-2.5.6-1~deb8u1
WebStart package: icedtea-netx:amd64-1.5-2+deb8u1
VM arguments: [-Dicedtea-web.bin.name=javaws, -Dicedtea-web.bin.location=/usr/bin/javaws, -Djava.security.manager, -Djava.security.policy=/etc/icedtea-web/javaws.policy]
Dataset consistency test: No problems found

Regards,

Sylve

comment:4 by Klumbumbus, 10 years ago

This is a problem of screens with smaller pixels today (retina screens) because the font gets smaller.
The font-size of the default mappaint style is not affected by the preference mappaint.fontsize because the default style has his own definition within the style, see https://josm.openstreetmap.de/browser/josm/trunk/styles/standard/elemstyles.mapcss#L4666

As a workaround you can use the following attached mapcss file, edit it in a text editor to choose your preffered font size and add it to the mappaint styles in JOSM (in the preferences https://josm.openstreetmap.de/wiki/Help/Preferences/Map#MapPaintStyles click on the plus sign top right)

by Klumbumbus, 10 years ago

Attachment: ChangeFontSize.mapcss added

comment:5 by Sylve, 10 years ago

Thanks a lot for your answer, this solution is working very well.

Thanks again,

Sylve

comment:6 by Sylve, 10 years ago

Resolution: fixed
Status: needinfoclosed

comment:7 by Don-vip, 10 years ago

Resolution: fixedworksforme

comment:8 by richlv, 6 years ago

#18095 asks for an easier way to change mappaint font size.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Sylve.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.