[Geoserver-users] font problems, yes, its a system problem, but help us please

seems like people often have problems with fonts with geoserver. in previous
posts, we have been told merely to "look at the java documentation for
fonts" which I haven't yet been able to find. perhaps we could get a little
more direction from someone who is much more experienced with java on the
linux server (know anyone like that?).

mfrumin@anonymised.com:~/rpa/trx$ env | grep -i JAVA_HOME
JAVA_HOME=/usr/lib/jvm/java-6-sun

mfrumin@anonymised.com:~/rpa/trx$ find /usr/lib/jvm/java-6-sun/jre/ | grep -i
ttf
/usr/lib/jvm/java-6-sun/jre/lib/fonts/LucidaTypewriterRegular.ttf
/usr/lib/jvm/java-6-sun/jre/lib/fonts/LucidaTypewriterBold.ttf
...
...

but when I pick one of the installed fonts, LucidaTypewriterRegular for
example, I still get this error:
796609823 [INFO] org.geotools.renderer.style.SLDStyleFactory - Bad file name
in SLDStyleFactoryLucidaTypewriterRegular

thanks again for the awesome product, doing some great stuff that I'll b
ready to show publicly pretty soon.

thanks,
mike
--
View this message in context: http://www.nabble.com/font-problems%2C-yes%2C-its-a-system-problem%2C-but-help-us-please-tf3654078.html#a10208406
Sent from the GeoServer - User mailing list archive at Nabble.com.

mfrumin ha scritto:

seems like people often have problems with fonts with geoserver. in previous
posts, we have been told merely to "look at the java documentation for
fonts" which I haven't yet been able to find. perhaps we could get a little
more direction from someone who is much more experienced with java on the
linux server (know anyone like that?).

mfrumin@anonymised.com:~/rpa/trx$ env | grep -i JAVA_HOME
JAVA_HOME=/usr/lib/jvm/java-6-sun

mfrumin@anonymised.com:~/rpa/trx$ find /usr/lib/jvm/java-6-sun/jre/ | grep -i
ttf
/usr/lib/jvm/java-6-sun/jre/lib/fonts/LucidaTypewriterRegular.ttf
/usr/lib/jvm/java-6-sun/jre/lib/fonts/LucidaTypewriterBold.ttf
...

but when I pick one of the installed fonts, LucidaTypewriterRegular for
example, I still get this error:
796609823 [INFO] org.geotools.renderer.style.SLDStyleFactory - Bad file name
in SLDStyleFactoryLucidaTypewriterRegular

Hmmm.... I do think you should use LucidaTypewriter as the name of the font, or Ludida Typewriter. Anyways, if you have full paths, use them
directly in your SLD: file:///usr/lib/jvm/java-6-sun/jre/lib/fonts/LucidaTypewriterRegular.ttf

This should work. Unfortunately I'm not not a linux machine. Justin?
Cheers
Andrea