NCL Home > Documentation > Graphics

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 resources: 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

Application Examples

Code Snippets

    res          = True
    res@txString = "Hello, World"
    res@txFont   = "helvetica"
    setvalues text_object
       "txString" " : "Hello, World"
       "txFont"     : "helvetica"
    end setvalues