TransWikia.com

How do I use custom fonts for labelling in Geoserver?

Geographic Information Systems Asked by Ando on April 28, 2021

I want to use a custom font I have downloaded from the web with Geoserver for my labels. How do I specify the location of my font so that the font-family css parameter can read it?

Geoserver 2.1.4

3 Answers

You put your custom TTF-fonts in the catalog styles which are located in your data directory.

Then you need to Clear Resource Cache under Server Status so that the font will be loaded by the server!

This is a new functionality from 2.1.x.

Correct answer by oskarlin on April 28, 2021

Puting my font files (*.ttf) to (...)/geoserver/data/styles still works in version 2.6? I put files there, cleared resources cache and in full list of available fonts they don't exist.

Answered by lomasz on April 28, 2021

Moving the ttf's into the data_dir of GeoServer didn't work out for me, too. So, I simply put them into C:/Windows/Fonts, cleared the ressource cache and voilà! Now they are available on GeoServer.

My environment: Windows Server 2008 R2 with GeoServer 2.10.1.

Answered by Franka on April 28, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP