Tuesday, 20 March 2018

How do I use use custom fonts for labelling in Geoserver?


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



Answer



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.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...