> For the complete documentation index, see [llms.txt](https://enls.gitbook.io/rgss-reference-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enls.gitbook.io/rgss-reference-manual/game-library/rgss-built-in-classes/font.md).

# Font

The font class.

Font is a property of the [Bitmap](/rgss-reference-manual/game-library/rgss-built-in-classes/bitmap.md) class.

## Superclass

* [Object](/rgss-reference-manual/standard-library/built-in-classes/object.md)

## Class Methods

### Font.new(\[name\[, size]])

Creates a Font object.

### Font.exist?(name)

Returns TRUE when the specified font exists within the system.

## Properties

### name

The font name. The default is "MS PGothic".

Include an array of strings to specify multiple fonts to be used in a desired order.

```ruby
font.name = ["HGPGyoshotai", "MS PGothic"]
```

In this example, if the higher priority font HGPGyoshotai does not exist within the system, the second choice MS PGothic will be used instead.

### size

The font size. The default is 22 points.

### bold

The bold flag. The default is FALSE.

### italic

The italic flag. The default is FALSE.

### color

The font color ([Color](/rgss-reference-manual/game-library/rgss-built-in-classes/color.md)). Alpha values may also be used. The default is (255,255,255,255).

## Class Properties

### default\_name

### default\_size

### default\_bold

### default\_italic

### default\_color

Change the default values for each component, to be applied to each new Font object.

```ruby
Font.default_name = "MS PMincho"
Font.default_bold = true
```
