Opened 18 years ago
Closed 18 years ago
#1552 closed defect (fixed)
[SLD] error parsing font paramaters
Reported by: | assefa | Owned by: | mapserverbugs |
---|---|---|---|
Priority: | high | Milestone: | 4.8 release |
Component: | WMS Server | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
error description sent by Gustavo Henrique Sberze Ribas (gribas@CPQD.COM.BR) Hi, I wonder what I'm doing wrong here, I'm trying to format the layer's font with SLD using the <sld:font> tag but if I set the style or weight to normal Mapserver ignores everything and use the default bitmap font. I.e., if the following tag is present in the SLD <sld:CssParameter name="font-style">normal</sld:CssParameter> then mapserver will use the default font and ignore the other attributes such as size and rotation. This happens with versions 4.4 and 4.6 (ms4w). I've build a simple test page to show the problem: http://www.cpqd.com.br/mrni-geo/sld_test.html Any ideas? From the how-to: "When a Font Style or a Font Weight is set to normal in an SLD, it is also ignored in building the name. For example, if there is an SLD with a Font Family of arial, a Font Style of normal and a Font weight equals to bold, the resulting MapServer font name is arial-bold."
Change History (1)
Note:
See TracTickets
for help on using tickets.