## Font(filename)

#### new Font(filename)
`doc/classes.js`, `line 136`

  Load a '.FNT' file for GRX.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `filename` | * | name of the font file.

### Members

#### static filename
`doc/classes.js`, `line 140`

  Name of the FNT file.

#### static height
`doc/classes.js`, `line 144`

  Font height

### Methods

#### DrawStringCenter(x, y, text, foreground, background)
`doc/classes.js`, `line 162`

  Draw a center aligned string to the canvas.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `x` | number | x position
  `y` | number | y position.
  `text` | string | the string to draw.
  `foreground` | Color | foreground color.
  `background` | Color | background color.

#### DrawStringLeft(x, y, text, foreground, background)
`doc/classes.js`, `line 153`

  Draw a left aligned string to the canvas.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `x` | number | x position
  `y` | number | y position.
  `text` | string | the string to draw.
  `foreground` | Color | foreground color.
  `background` | Color | background color.

#### DrawStringRight(x, y, text, foreground, background)
`doc/classes.js`, `line 171`

  Draw a right aligned string to the canvas.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `x` | number | x position
  `y` | number | y position.
  `text` | string | the string to draw.
  `foreground` | Color | foreground color.
  `background` | Color | background color.

#### StringHeight(text) → {number}
`doc/classes.js`, `line 183`

  Calculate string height for this font.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `text` | string | the string to check.

  ##### Returns:

  number - the height in pixels.

#### StringWidth(text) → {number}
`doc/classes.js`, `line 177`

  Calculate string width for this font.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `text` | string | the string to check.

  ##### Returns:

  number - the width in pixels.