I want to know how many kinds of font-family are available in sld? What is
the default one?
I am from China, so labels in map are in Chinese.
First I set font-family like this, but the label only displayed in square
shapes
<CssParameter name="font-family">Arial</CssParameter>
<CssParameter name="font-size">10</CssParameter>
<CssParameter name="font-weight">normal</CssParameter>
I thought the font-family I set was wrong, so I changed it as following
<CssParameter name="font-size">10</CssParameter>
<CssParameter name="font-weight">normal</CssParameter>
Now, it works. But there is another problem. The labels are fuzzy. I want it
as clear as google map. So is there any methods to make geoserver support
chinese font-family?
Please help me, Thank you
--
View this message in context: http://www.nabble.com/Chinese-font-family-in-sld--tp23540402p23540402.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
shane_china ha scritto:
I want to know how many kinds of font-family are available in sld? What is
the default one? I am from China, so labels in map are in Chinese. First I set font-family like this, but the label only displayed in square
shapes
<CssParameter name="font-family">Arial</CssParameter> <CssParameter name="font-size">10</CssParameter> <CssParameter name="font-weight">normal</CssParameter>
I thought the font-family I set was wrong, so I changed it as following
<CssParameter name="font-size">10</CssParameter> <CssParameter name="font-weight">normal</CssParameter>
Now, it works. But there is another problem. The labels are fuzzy. I want it
as clear as google map. So is there any methods to make geoserver support
chinese font-family?
GeoServer can use any font the operating system in which it runs offers,
at least on Windows and Mac.
In the past I made this map:
http://jira.codehaus.org/browse/GEOT-1210
and I used the "PMingliu" font that, I believe, was distributed along with Windows (so, the SLD looked like
<CssParameter name="font-family">PMingLiu</CssParameter> ).
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
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
Thank you for your help. I will try every font-family and get a perfect one
Andrea Aime-4 wrote:
shane_china ha scritto:
I want to know how many kinds of font-family are available in sld? What
is
the default one?
I am from China, so labels in map are in Chinese.
First I set font-family like this, but the label only displayed in square
shapes
<CssParameter name="font-family">Arial</CssParameter>
<CssParameter name="font-size">10</CssParameter>
<CssParameter name="font-weight">normal</CssParameter>
I thought the font-family I set was wrong, so I changed it as following
<CssParameter name="font-size">10</CssParameter>
<CssParameter name="font-weight">normal</CssParameter>
Now, it works. But there is another problem. The labels are fuzzy. I want
it
as clear as google map. So is there any methods to make geoserver support
chinese font-family?
GeoServer can use any font the operating system in which it runs offers,
at least on Windows and Mac.
In the past I made this map:
http://jira.codehaus.org/browse/GEOT-1210
and I used the "PMingliu" font that, I believe, was distributed along
with Windows (so, the SLD looked like
<CssParameter name="font-family">PMingLiu</CssParameter> ).
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
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
View this message in context: http://www.nabble.com/Chinese-font-family-in-sld--tp23540402p23558848.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
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.
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:
…
Arial
Unifont Medium
…
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 <itintern12@anonymised.com> 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"?>
…
…
ogc:PropertyNamename</ogc:PropertyName>
Normal
10
#000000
..
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
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
I got it! My understanding was very misguided...I have posted about my
success and the steps I have taken here:
http://old.nabble.com/Display-labels-in-another-language-td29703100.html#a29847085
Thanks,
elshae
--
View this message in context: http://old.nabble.com/Chinese-font-family-in-sld--tp23540402p29847398.html
Sent from the GeoServer - User mailing list archive at Nabble.com.