Skip to content

TextSymbolizer never wraps text #30

@rouen-sk

Description

@rouen-sk

If I understand documentation correctly, TextSymbolizer should wrap every label longer than pixel-width specified in wrap-width. However, none of my labels are wrapped. I am using postgis datasource, but I even tried constant text in style XML, and result is still unwrapped. The rendered text is 3-times longer than wrap-width. Adding or removing wrap-before="true" changes nothing.


<Rule>
      <MaxScaleDenominator>3000000</MaxScaleDenominator>
      <MinScaleDenominator>200000</MinScaleDenominator>
      <TextSymbolizer size="14" fontset-name="fontset-3" wrap-width="50" fill="#333333" halo-fill="rgba(255, 255, 255, 0.5)" halo-radius="1" halo-rasterizer="fast">"Nove mesto nad Vahom"</TextSymbolizer>
    </Rule>

mapnik_no_wrapping

I created this issue also at mapnik (mapnik/mapnik#3263), but maybe it is bug on NET-Mapnik, because I dont thing issue like this would go unnoticed by all the mapnik users?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions