Hey folks,
I'm trying to diagnose why my <sld:Font> elements aren't changing the
font or size of my labels. The other styling elements are working
just fine, but a font tag like the following:
<sld:Font>
<sld:CssParameter name="font-family">Times New
Roman</sld:CssParameter>
<sld:CssParameter name="font-weight">bold</sld:CssParameter>
<sld:CssParameter name="font-size">8</sld:CssParameter>
</sld:Font>
doesn't seem to have any effect. Are there any library dependencies
that I might have failed to install?
Thanks for any advice!
--j
Hi Josh,
especially if you are running Linux, you might want to take a look at this (the end):
http://geoserver.org/display/GEOSDOC/1.1.4+CentOS+(Red+Hat)+5.1+Install
- mika -
Josh Marcus kirjoitti:
Hey folks,
I'm trying to diagnose why my <sld:Font> elements aren't changing the
font or size of my labels. The other styling elements are working
just fine, but a font tag like the following:
<sld:Font>
<sld:CssParameter name="font-family">Times New
Roman</sld:CssParameter>
<sld:CssParameter name="font-weight">bold</sld:CssParameter>
<sld:CssParameter name="font-size">8</sld:CssParameter>
</sld:Font>
doesn't seem to have any effect. Are there any library dependencies
that I might have failed to install?
Thanks for any advice!
--j
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Josh Marcus wrote:
I'm trying to diagnose why my <sld:Font> elements aren't changing the
font or size of my labels. The other styling elements are working
just fine, but a font tag like the following:
<sld:Font>
<sld:CssParameter name="font-family">Times New Roman</sld:CssParameter>
<sld:CssParameter name="font-weight">bold</sld:CssParameter>
<sld:CssParameter name="font-size">8</sld:CssParameter>
</sld:Font>
doesn't seem to have any effect. Are there any library dependencies
that I might have failed to install?
Shouldn't be - the allowed font-families are system dependant accoding the SLD spec. Is it the entire <sld:Font> element that isn't working? If so did you check that it appears in the correct order in your SLD? i.e. after <Label> and before <LabelPlacement>, as per the spec:
<xs:element name="TextSymbolizer">
<xs:complexType>
<xs:sequence>
<xs:element ref="sld:Geometry" minOccurs="0"/>
<xs:element ref="sld:Label" minOccurs="0"/>
<xs:element ref="sld:Font" minOccurs="0"/>
<xs:element ref="sld:LabelPlacement" minOccurs="0"/>
<xs:element ref="sld:Halo" minOccurs="0"/>
<xs:element ref="sld:Fill" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
Regards,
Miles Jordan
Applications Developer
Australian Antarctic Data Centre
___________________________________________________________________________
Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
Visit our web site at http://www.antarctica.gov.au/
___________________________________________________________________________