I presume you have installed the font Arial on your server?

apt-get install ttf-mscorefonts-installer

Just checking..

Edward

Date: Fri, 25 Nov 2011 10:53:41 +0000
From: [email protected]
To: [email protected].
Subject: [Geoserver-users] size of the labels don't change


  



    
  
  
    Hello to all,

    

    This is my first mail to the list.

    I have a problem, i have a style and i edit the font size of the
    label (in "
        <CssParameter name="font-size">6</CssParameter>") but
    the layer appears always the same.
      never changes the size and I've
        tried a variety of styles. Can you tell me what I do to change the size?

        

        OS: Ubuntu 10.04

        Geoserver 2.1-beta1

    

        

        Thanks

        

       One of the styles
      I used is the
        following:

        

        xml version="1.0" encoding="ISO-8859-1"?>

        <StyledLayerDescriptor version="1.0.0"
        xmlns="http://www.opengis.net/sld";
        xmlns:ogc="http://www.opengis.net/ogc";

          xmlns:xlink="http://www.w3.org/1999/xlink";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

          xsi:schemaLocation="http://www.opengis.net/sld
        http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd";>

          <NamedLayer>

            <Name>Default Point</Name>

            <UserStyle>

              <Title>Default point</Title>

              <Abstract>A sample style that just prints out a 6px
        wide red square</Abstract>

        

             <FeatureTypeStyle>

             <Rule>

               <PointSymbolizer>

                 <Graphic>

                   <Mark>

                     <WellKnownName>circle</WellKnownName>

                     <Fill>

                       <CssParameter
        name="fill">#FF0000</CssParameter>

                     </Fill>

                   </Mark>

                   <Size>6</Size>

                 </Graphic>

               </PointSymbolizer>

               <TextSymbolizer>

                 <Label>

                   <ogc:PropertyName>codi</ogc:PropertyName>

                 </Label>

                 <Font>

                   <CssParameter
        name="font-family">Arial</CssParameter>

                   <CssParameter
        name="font-size">6</CssParameter>

                   <CssParameter
        name="font-style">normal</CssParameter>

                   <CssParameter
        name="font-weight">bold</CssParameter>

                 </Font>

                 <LabelPlacement>

                   <PointPlacement>

                     <AnchorPoint>

                       <AnchorPointX>0.0</AnchorPointX>

                       <AnchorPointY>0.0</AnchorPointY>

                     </AnchorPoint>

                     <Displacement>

                       <DisplacementX>0</DisplacementX>

                       <DisplacementY>0</DisplacementY>

                     </Displacement>

                   </PointPlacement>

                 </LabelPlacement>

                 <Fill>

                   <CssParameter
        name="fill">#000000</CssParameter>

                 </Fill>

               </TextSymbolizer>

             </Rule>

           </FeatureTypeStyle>

            </UserStyle>

          </NamedLayer>

        </StyledLayerDescriptor>

      
  


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users                    
                  
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to