Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
qgib opened this issue Jul 17, 2018 · 0 comments · Fixed by #46975
Closed

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

qgib opened this issue Jul 17, 2018 · 0 comments · Fixed by #46975
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers

Comments

@qgib
Copy link
Contributor

qgib commented Jul 17, 2018

Author Name: Bo Thomsen (Bo Thomsen)
Original Redmine Issue: 19435
Affected QGIS version: 3.2
Redmine category:symbology


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:Formatttf</se:Format>
se:MarkIndex129</se:MarkIndex>
se:Fill
<se:SvgParameter name="fill">#000000</se:SvgParameter>
</se:Fill>
</se:Mark>
se:Size12</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:Formatttf</se:Format>
se:MarkIndex129</se:MarkIndex>
se:Fill
<se:SvgParameter name="fill">#000000</se:SvgParameter>
</se:Fill>
</se:Mark>
se:Size12</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


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant