Bug report #19435

SLD import doesn't recognize html enconding in ttf font references

Added by Bo Thomsen almost 6 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Symbology
Affected QGIS version:3.2 Regression?:No
Operating System:MS Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:27263

Description

If i have a SLD file containing ttf references like this

..
<se:PointSymbolizer>
<se:Graphic>
<se:Mark>
<se:OnlineResource xlink:type="simple" xlink:href="ttf://MapInfo%20Miscellaneous" />
<se:Format>ttf</se:Format>
<se:MarkIndex>129</se:MarkIndex>
<se:Fill>
<se:SvgParameter name="fill">#000000</se:SvgParameter>
</se:Fill>
</se:Mark>
<se:Size>12</se:Size>
</se:Graphic>
</se:PointSymbolizer>
..

QGIS can't recognize the font reference (although the font is installed) and replace the font with a default font.

However if the SLD references looks like this
..
<se:PointSymbolizer>
<se:Graphic>
<se:Mark>
<se:OnlineResource xlink:type="simple" xlink:href="ttf://MapInfo Miscellaneous" />
<se:Format>ttf</se:Format>
<se:MarkIndex>129</se:MarkIndex>
<se:Fill>
<se:SvgParameter name="fill">#000000</se:SvgParameter>
</se:Fill>
</se:Mark>
<se:Size>12</se:Size>
</se:Graphic>
</se:PointSymbolizer>
..

i.e. with " " instead of "%20" it works. But AFAIK the html encoding inside the XML file is allowed and should be interpreted

The sld file is exported from GeoServer

punkt_autogenereret.4.sld (2.65 KB) Bo Thomsen, 2018-07-17 04:31 PM

Also available in: Atom PDF