Font tables

There are many fonts available (click on any row to see expanded character set for that font):

You can change the font of a text string by using one of the appropriate Font resources. For example, txFont, tiMainFont, tiXAxisFont, tiXAxisFont, lbLabelFont, tmXBLabelFont, tmYLLabelFont, etc. The font can be entered as an integer index value or a string (use above table as a guide).

If there's a particular font you want to apply to all fonts in every plot you ever create, you can set the global "*Font" resource in your .hluresfile:

    *Font  : times-roman

Code Snippets

res          = Ngl.Resources()
res.txString = "Hello, World"
res.txFont   = "helvetica"
res.txFont   = 21