I am frequently using the Generic Mapping Tools (GMT) to generate high-quality geographical maps in postscript format. Recently, I wanted to switch from the standard postscript fonts (Helvetica, Courrier, etc. available by default in GMT) to other fonts I have installed on my computer.
I massively googled this question, and all I've found is that it is possible to use custom fonts as following:
Create
CUSTOM_font_info.d
file in the local directory or in the GMT's share/pslib of the GMT directory and specify the custom font name, size and encoding# CUSTOM_font_info.d YourCustomFont 0.700 0
In your bash script set the FONT variable with your custom font (
gmt set FONT YourCustomFont
)
Once I did that, I executed my GMT script, no warning or error occurred, but the font on my figure is not the one I wanted. Do anyone see what's going on ?
By the way, I am running GMT 5.1.2 under Mac OS X 10.11.2, and the font I want to use is CMU Sans Serif (downloaded both as .tff and .dfont formats).