Modify

Opened 2 years ago

Closed 3 days ago

Last modified 3 days ago

#23654 closed defect (fixed)

[patch] Attribution text misalignment

Reported by: gaben Owned by: team
Priority: trivial Milestone: 26.09
Component: JMapViewer Version:
Keywords: template_report Cc: GerdP, stoecker

Description

What steps will reproduce the problem?

  1. Open a layer which has an attribution
  2. Check the alignment on the lower right corner

What is the expected result?

There is even padding around the text

What happens instead?

No padding on the right, makes hard to read the end.

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

Revision:19067
Is-Local-Build:true
Build-Date:2024-05-01 14:57:09

Identification: JOSM/1.5 (19067 SVN en) Linux Ubuntu 22.04.4 LTS
Memory Usage: 386 MB / 3988 MB (79 MB allocated, but free)
Java version: 21.0.2+13-Ubuntu-122.04.1, Private Build, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1912×1020 (scaling 1.00×1.00)
Maximum Screen Size: 1912×1020
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: hu_HU.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_HU
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: ubuntu:GNOME
Java ATK Wrapper package: libatk-wrapper-java:all-0.38.0-5build1
fonts-noto: fonts-noto:-
VM arguments: [--add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, -javaagent:${HOME}/progs/idea/lib/idea_rt.jar=42693:${HOME}/progs/idea/bin, -Dfile.encoding=UTF-8, -Dsun.stdout.encoding=UTF-8, -Dsun.stderr.encoding=UTF-8]

Attachments (5)

before.png (32.0 KB ) - added by gaben 2 years ago.
after.png (32.1 KB ) - added by gaben 2 years ago.
josm_23654.patch (3.3 KB ) - added by gaben 2 years ago.
josm_23654_2.patch (6.8 KB ) - added by gaben 20 months ago.
josm_23654_3.patch (5.6 KB ) - added by gaben 3 days ago.

Download all attachments as: .zip

Change History (17)

by gaben, 2 years ago

Attachment: before.png added

by gaben, 2 years ago

Attachment: after.png added

comment:1 by gaben, 2 years ago



It's just 5px padding which is missing.

by gaben, 2 years ago

Attachment: josm_23654.patch added

comment:2 by gaben, 2 years ago

Marked it as WIP, because I want to understand the attrTermsText printing part, which is probably simplifyable.

by gaben, 20 months ago

Attachment: josm_23654_2.patch added

comment:3 by gaben, 20 months ago

I left a function (drawRectangleWithBorder()) there for you to test the patch, you should remove it before committing. I tested it myself on the JMapViewer demo, it looked good there.

comment:4 by gaben, 20 months ago

Hmm, I've just realized text aliasing is globally missing from JMapViewer.

by gaben, 3 days ago

Attachment: josm_23654_3.patch added

comment:5 by gaben, 3 days ago

Milestone: 26.09

I'll commit this version in the next days.

comment:6 by gaben, 3 days ago

Summary: [WIP patch] Attribution text misalignment[patch] Attribution text misalignment

in reply to:  5 comment:7 by gaben, 3 days ago

Cc: GerdP stoecker added

Replying to gaben:

I'll commit this version in the next days.

Cannot commit, credentials problem, whatever. Whoever has right, please commit attachment:josm_23654_3.patch​ :)

I tested it, results what is in comment:1.

comment:8 by stoecker, 3 days ago

I added you to osmsvn as well. You should be able to commit now.

comment:9 by gaben, 3 days ago

Oh okay, thank you! Let's see.

comment:10 by gaben, 3 days ago

Resolution: fixed
Status: newclosed

In 36510/osm:

fix #23654 - improve map imagery attribution padding

comment:11 by stoecker, 3 days ago

Do a new release 2.26?

comment:12 by gaben, 3 days ago

I was thinking about it, but there might be more to come ;)

I'm currently experimenting with Maven and build stuff. Maybe wait a week or so and if there is nothing, 2.26 can be released.

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. 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.