Modify

Opened 4 years ago

Last modified 4 years ago

#20572 new defect

Overflowing text labels in the corner of the display

Reported by: Stereo Owned by: team
Priority: normal Milestone:
Component: Core mappaint Version:
Keywords: template_report Cc:

Description (last modified by Don-vip)

What steps will reproduce the problem?

  1. Activate a stylesheet that labels lines, like the built-in Potlatch stylesheet, or this minimal example:
meta {
    title: "Text overflow demo";
    version: "1";
}

way { text: auto; text-color: white; font-size: 24; text-position: line }
  1. Draw a short way with a very very long name, or open this minimal example:
<?xml version='1.0' encoding='UTF-8'?>
<osm version='0.6' generator='hands' upload='false'>
  <node id='-1' lat='1' lon='1' />
  <node id='-2' lat='1' lon='2' />
  <node id='-3' lat='1' lon='3' />
  <node id='-4' lat='4' lon='1' />
  <node id='-5' lat='4' lon='-2' />
  <way id='-6' visible='true'>
    <nd ref='-1' />
    <nd ref='-2' />
    <tag k='name' v='Ayayayayaayayayayaayayayayaayayayayaayayayayaayayayayaayayayayax' />
  </way>
  <way id='-7' visible='true'>
    <nd ref='-2' />
    <nd ref='-3' />
  </way>
  <way id='-8'>
    <nd ref='-1' />
    <nd ref='-4' />
    <nd ref='-5' />
  </way>
</osm>

What is the expected result?

Name of the way gets truncated

What happens instead?

Middle of the name gets shown on the way. Rest of the name gets shown at position 0,0 at the top left of the screen.


Misrendering of overflowing Arabic text

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

Revision:17549
Is-Local-Build:true
Build-Date:2021-03-01 14:32:57

Identification: JOSM/1.5 (17549 SVN en_GB) Mac OS X 10.16
OS Build number: macOS 11.2.2 (20D80)
Memory Usage: 3956 MB / 8192 MB (1710 MB allocated, but free)
Java version: 15.0.2+7, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 69733632 1680×1050 (scaling 2.00×2.00) Display 458659266 3360×1890 (scaling 2.00×2.00)
Maximum Screen Size: 3360×1890
Best cursor sizes: 16×16→16×16, 32×32→32×32
VM arguments: [--add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, --module-path=/Applications/JOSM.app/Contents/app/mods]
Dataset consistency test: No problems found

Plugins:
+ AddrInterpolation (35640)
+ CommandLine (35705)
+ Create_grid_of_ways (35640)
+ ImportImagePlugin (35567)
+ ImproveWay (29)
+ Mapillary (1.5.37.2)
+ OpeningHoursEditor (35640)
+ PicLayer (2a9aa7a)
+ RelationDissolve (0.2.0)
+ alignways (35640)
+ apache-commons (35524)
+ apache-http (35589)
+ areaselector (368)
+ austriaaddresshelper (1597341117)
+ auto_tools (73)
+ buildings_tools (35669)
+ changeset-viewer (25)
+ conflation (0.6.6)
+ continuosDownload (91)
+ contourmerge (v0.1.6)
+ ejml (35458)
+ flatlaf (35703)
+ geotools (35458)
+ gridify (1606242219)
+ http2 (35427)
+ imagery-xml-bounds (35640)
+ jaxb (35543)
+ jna (35662)
+ jogl (1.2.3)
+ jts (35458)
+ log4j (35458)
+ opendata (35640)
+ openqa (0.2.1)
+ poly (35640)
+ public_transport (35640)
+ reltoolbox (35640)
+ reverter (35688)
+ shrinkwrap (v1.0.4)
+ splinex (35562)
+ terracer (35640)
+ todo (30306)
+ undelete (35640)
+ utilsplugin2 (35691)
+ wikipedia (1.1.4)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/NewTags&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/BicycleJunction&preset&zip=1
+ http://osmtools.de/josm/steps.xml
+ https://josm.openstreetmap.de/josmfile?page=Presets/Historic_Stone&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/LaneAttributes&preset&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Golf_Course&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/PublicTransportOneClick&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Bus_lanes&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Historical_Objects&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/public_bookcase&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Stolpersteine&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/BuildingPreset&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Playground_Equipment&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/PublicTransportGtfs&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Heritage&zip=1
+ https://gitlab.com/k127/josm-presets/raw/master/diplomatic.xml

Map paint styles:
- https://github.com/simon04/coloured-addresses.mapcss/raw/master/dist/coloured-addresses.mapcss
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&style&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/HiDPISupport&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/AddressValidator&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Potlach2_access&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Potlatch2&zip=1
+ ${HOME}/osm/overflow.mapcss

Validator rules:
+ http://www.openrailwaymap.org/validator/openrailwaymap.validator.mapcss
+ https://josm.openstreetmap.de/josmfile?page=Rules/GermanySpecific&zip=1
+ http://www.openrailwaymap.org/validator/de-openrailwaymap.validator.mapcss
+ https://josm.openstreetmap.de/josmfile?page=Rules/MissingWeekdays&zip=1
+ https://raw.githubusercontent.com/nlehuby/transport_mapcss/master/transport.validator.mapcss

Last errors/warnings:
- 02663.065 W: Already here java.net.ConnectException: HTTP connect timed out
- 02663.066 E: Failed to locate image 'http://openptmap.de/favicon_pt.png'
- 03294.123 W: restricted header name: "Connection"
- 03294.316 W: restricted header name: "Connection"
- 03294.645 W: restricted header name: "Connection"
- 15459.217 W: java.io.IOException: /192.168.1.110:64638: GOAWAY received. Cause: java.io.IOException: /192.168.1.110:64638: GOAWAY received
- 15459.256 E: java.io.IOException: /192.168.1.110:64638: GOAWAY received. Cause: java.io.IOException: /192.168.1.110:64638: GOAWAY received
- 15459.834 E: org.openstreetmap.josm.io.OsmTransferException: Could not connect to the OSM server. Please check your internet connection.. Cause: java.io.IOException: /192.168.1.110:64638: GOAWAY received. Cause: java.io.IOException: /192.168.1.110:64638: GOAWAY received
- 15459.847 E: IO Exception - <html>Failed to upload data to or download data from<br>'https://api.openstreetmap.org/api/0.6/changesets?changesets=30281439,94005288,13446302,41035014,9566820,47775267,19597815,47775876'<br>due to a problem with transferring data.<br>Details (untranslated): /192.168.1.110:64638: GOAWAY received</html>
- 15462.807 W: {Way id=133407703 version=8 VT nodes=[{Node id=1349297223 version=5 V lat=49.7262461,lon=6.4953245}, {Node id=1957311906 version=2 V lat=49.7261314,lon=6.4951705}, {Node id=792271041 version=4 V lat=49.7259678,lon=6.4949897}, {Node id=4793159659 version=1 V lat=49.7258303,lon=6.4948604}, {Node id=291337925 version=13 V lat=49.7257013,lon=6.4947563}, {Node id=4793159656 version=1 V lat=49.7255763,lon=6.4946579}, {Node id=291337926 version=15 V lat=49.7254335,lon=6.4945742}, {Node id=792270980 version=3 V lat=49.7252334,lon=6.494482}, {Node id=792271004 version=3 V lat=49.7250417,lon=6.4944144}, {Node id=291337927 version=14 V lat=49.7247549,lon=6.4943605}, {Node id=792270947 version=3 V lat=49.7244673,lon=6.4943672}, {Node id=4793191021 version=1 V lat=49.7242325,lon=6.4944173}, {Node id=4793190920 version=1 V lat=49.7241502,lon=6.4944401}, {Node id=291337920 version=13 V lat=49.7240694,lon=6.4944735}]} not found in HistoryDataSet

Attachments (5)

Screenshot 2021-03-06 at 16.58.54.png (105.4 KB ) - added by Stereo 4 years ago.
overflow.mapcss (134 bytes ) - added by Stereo 4 years ago.
overflow.osm (686 bytes ) - added by Stereo 4 years ago.
arabicoverflow.osm (752 bytes ) - added by Stereo 4 years ago.
Overflowing arabic text gets misrendered too, but not at 0,0
Screenshot 2021-03-06 at 17.03.55.png (28.1 KB ) - added by Stereo 4 years ago.
Misrendering of overflowing Arabic text

Download all attachments as: .zip

Change History (7)

by Stereo, 4 years ago

Attachment: overflow.mapcss added

by Stereo, 4 years ago

Attachment: overflow.osm added

by Stereo, 4 years ago

Attachment: arabicoverflow.osm added

Overflowing arabic text gets misrendered too, but not at 0,0

by Stereo, 4 years ago

Misrendering of overflowing Arabic text

comment:1 by Stereo, 4 years ago

Description: modified (diff)

comment:2 by Don-vip, 4 years ago

Description: modified (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to Stereo.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


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