Modify

Opened 3 years ago

Closed 2 years ago

Last modified 2 years ago

#18095 closed enhancement (fixed)

provide a way to easily change mappaint font size

Reported by: richlv Owned by: team
Priority: normal Milestone: 20.01
Component: Core mappaint Version: tested
Keywords: font size settings Cc:

Description

As explained in #11752, the mappaint.fontsize setting mostly does not work.
While there's a workaround provided, it is fairly cumbersome for a temporary change. Fairly frequently I want to change the font size for short while only (for example, when demonstrating JOSM usage or creating screenshots).

It would be great if there was some easy way to override the font size without all the steps, involving styles.

Attachments (0)

Change History (8)

comment:1 in reply to:  description Changed 3 years ago by Klumbumbus

Replying to richlv:

all the steps, involving styles.

What are "all the steps"? Activating an additional style is 1, max. 2 clicks away.

comment:2 Changed 3 years ago by richlv

That's true, but changing the font size also involves editing the mapcss file.
While not terribly bad, it's still a bit cumbersome.

Would a property that overrides styles be possible?

comment:3 in reply to:  2 Changed 3 years ago by Klumbumbus

Replying to richlv:

That's true, but changing the font size also involves editing the mapcss file.

You can use several styles, e.g. L, XL and XXL, and in every situation you activate the one you need. That requires mapcss editing only once.

comment:4 Changed 3 years ago by stoecker

Don't we have preferences in MapCSS? Couldn't the font size be one value?

comment:5 Changed 3 years ago by Klumbumbus

That would require point two of #10435.

comment:6 Changed 3 years ago by Don-vip

Component: CoreCore mappaint
Keywords: font size settings added

comment:7 Changed 2 years ago by simon04

Resolution: fixed
Status: newclosed

In 15731/josm:

see #10435, fix #18095 - MapCSS: add settings of type string/double

comment:8 Changed 2 years ago by simon04

Milestone: 20.01
setting::place_font_size {
  type: double;
  label: tr("Set place name font size...");
  default: 11;
}

+node.place, way.place, area.place {
  font-size: setting("place_font_size");
}

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.