[Geoserver-users] Font problems

Hi,

For some reason Geoserver uses only default settings for <FONT> part of SLD file even if I change it.
I am not sure what causing this problem. This is the message that I am getting from the server.

850386 [INFO] org.geotools.renderer.style.SLDStyleFactory - Bad file name in SLDStyleFactoryArial
java.io.FileNotFoundException: Arial (No such file or directory)

Thanking in advance,

Sasha

P.S

Part of SLD file:

<Font> <CssParameter name="font-family">Arial</CssParameter>
                                <CssParameter name="font-style">italic</CssParameter>
                                <CssParameter name="font-size">10</CssParameter>
                        </Font>

GeoServer just depends on the fonts that are available from your java install. So perhaps you don't have many or any additional fonts available?

Chris

Sasha wrote:

Hi,

For some reason Geoserver uses only default settings for <FONT> part of SLD file even if I change it.
I am not sure what causing this problem. This is the message that I am getting from the server.

850386 [INFO] org.geotools.renderer.style.SLDStyleFactory - Bad file name in SLDStyleFactoryArial
java.io.FileNotFoundException: Arial (No such file or directory)

Thanking in advance,

Sasha

P.S

Part of SLD file:

<Font> <CssParameter name="font-family">Arial</CssParameter>
                                <CssParameter name="font-style">italic</CssParameter>
                                <CssParameter name="font-size">10</CssParameter>
                        </Font>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:1003,44eea8b290002223018498!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

Sasha ha scritto:

Hi,

For some reason Geoserver uses only default settings for <FONT> part of SLD file even if I change it.
I am not sure what causing this problem. This is the message that I am getting from the server.

850386 [INFO] org.geotools.renderer.style.SLDStyleFactory - Bad file name in SLDStyleFactoryArial
java.io.FileNotFoundException: Arial (No such file or directory)

This exception occurs when a font name is not properly registered in
your font subsystem.
On Windows and with the "Arial" font this should never happen (just
tested on my XP install, works fine), on Linux this happens if you don't
have the MS web fonts installed (Arial and the like are not standard
fonts, they are available by defaults only on Windows).

Hope this helps
Best regards
Andrea Aime