Alex Chew ha scritto:
Thanks,Andrea
I tried to find where does geoserver load font files but failed.
Chinese words can be displayed well when I put font-family to KaiTi_GB2312.
But geoserver always show me Exception message,java.io.FileNotFoundException: KaiTi_GB2312 (ϵͳÕÒ²»µ½Ö¸¶¨µÄÎļþ¡£)
I also set ecoding of my webapp to GBK, but nothing changed.
Where can I find the font list in geoserver?
There is no place whatsoever now. Hmm... maybe we could think
about adding a place in the data directory where user fonts
can be stored. It could be also a nice place for those fonts
whose content is a set of symbols (windings like).
And how to put my own font files to geoserver which can be refered in
SLD files?
If you can see them from Notepad, Word or something similar
also Geoserver can see them (provided you restart it).
Otherwise, provide a full path to the ttf file:
file://c:/windows/fonts/myfont.ttf
Cheers
Andrea