I've been playing around a bit with mapnik styles for openstreetmap data
(which needs good font coverage since it has data from every part of the
world). The styles used on http://open.mapquest.co.uk/ use Unifont (
http://unifoundry.com/unifont.html) as a fallback for every font-family in
their style to avoid the empty box problem.
In SLD, this would look like:
...
<Font>
<CssParameter name="font-family">Arial</CssParameter>
<CssParameter name="font-family">Unifont Medium</CssParameter>
</Font>
...
Actually installing the font varies from operating system to operating
system.
Hope this helps.
--
David Winslow
OpenGeo - http://opengeo.org/
On Tue, Sep 14, 2010 at 10:31 AM, elshae <[email protected]> wrote:
>
>
> Andrea Aime-4 wrote:
> >
> > Generally speaking, find a font that displays the chinese chars the
> > way you like on your platform and use its name in the SLD.
> >
> > Hope this helps
> >
> > Cheers
> > Andrea
> >
>
> Hello, I am having this issue now. In my case I have the chinese and
> Tibetan names of countries stored in a database and want to display the
> names as labels on a map. I have tried these suggestions but only get
> square characters as mentioned above. My SLD code for textsymbolizer is as
> such:
> <?xml version="1.0" encoding="UTF-8"?>
> ...
> ...
> <TextSymbolizer>
> <label><ogc:PropertyName>name</ogc:PropertyName>
> </label>
>
>
> <CssParameter name="font-style">Normal</CssParameter>
> <CssParameter name="font-size">10</CssParameter>
>
>
> <Fill>
> <CssParameter name="fill">#000000</CssParameter>
> </Fill>
> </TextSymbolizer>
> ..
>
> But it's still a no-go :(. Any suggestions would be greatly appreciated.
>
> Thank you,
>
> elshae
>
> --
> View this message in context:
> http://old.nabble.com/Chinese-font-family-in-sld--tp23540402p29709236.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users