[Geoserver-users] where to define font-family for sld

Hi all,

I defined a sld for labeling that should use the fonttype 'Arial':

-->>
   <TextSymbolizer>
     <Label>
       <ogc:PropertyName>Linie</ogc:PropertyName>
     </Label>

     <Font>
       <CssParameter name="font-family">Arial</CssParameter>
       <CssParameter name="font-style">Normal</CssParameter>
       <CssParameter name="font-size">16</CssParameter>
       <CssParameter name="font-weight">bold</CssParameter>
     </Font>

    <LabelPlacement>
      <LinePlacement>
        <PerpendicularOffset>5</PerpendicularOffset>
      </LinePlacement>
    </LabelPlacement>
<<--

I played with the CssParameters and looked the results at OpenLayers.
There I experienced, that there's no reaction on changing the font-size/font-family ?

I looked into the geoserver_log and found following message :
-->>
INFO: Bad file name in SLDStyleFactoryArial
java.io.FileNotFoundException: Arial (No such file or directory)
<<--

How can I teach GeoServer, where to find the font on my system ?

(GeoServer-1.5.3)

regards
Ronald

--
Ronald Woita
http://geoportal.rostock.de
Hansestadt Rostock
Kataster-, Vermessungs- und Liegenschaftsamt
Holbeinplatz 14, 18069 Rostock
email: ronald.woita@anonymised.com
phone: +49 (0)381 - 381 6256

Hi Ronald,

There are a couple of ways to add Fonts in java. The first is to copy
the .ttf for the font into the jre/lib/fonts direcftory of your jdk.

An alternative is to create an entry in jre/lib/font.properties if the
font is installed in the well-known font directory for your platform.

Which jdk and operating system are you running?

-Justin

Ronald Woita wrote:

Hi all,

I defined a sld for labeling that should use the fonttype 'Arial':

-->>
   <TextSymbolizer>
     <Label>
       <ogc:PropertyName>Linie</ogc:PropertyName>
     </Label>

     <Font>
       <CssParameter name="font-family">Arial</CssParameter>
       <CssParameter name="font-style">Normal</CssParameter>
       <CssParameter name="font-size">16</CssParameter>
       <CssParameter name="font-weight">bold</CssParameter>
     </Font>

    <LabelPlacement>
      <LinePlacement>
        <PerpendicularOffset>5</PerpendicularOffset>
      </LinePlacement>
    </LabelPlacement>
<<--

I played with the CssParameters and looked the results at OpenLayers.
There I experienced, that there's no reaction on changing the font-size/font-family ?

I looked into the geoserver_log and found following message :
-->>
INFO: Bad file name in SLDStyleFactoryArial
java.io.FileNotFoundException: Arial (No such file or directory)
<<--

How can I teach GeoServer, where to find the font on my system ?

(GeoServer-1.5.3)

regards
Ronald

--
Ronald Woita
http://geoportal.rostock.de
Hansestadt Rostock
Kataster-, Vermessungs- und Liegenschaftsamt
Holbeinplatz 14, 18069 Rostock
email: ronald.woita@anonymised.com
phone: +49 (0)381 - 381 6256

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,46caa2dc55775332866982!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org