# Change the font and text size

> Choose the font and text size of the story text, and use a font file

You choose the font and text size of the story text for the whole project under "Text" in Game settings. You can also use a font file you have prepared.

## Choose a kind of font

1. Open "Game settings" at the top of the screen.
2. Under "Text," choose "Serif," "Sans" or "Rounded" for "Font."
3. In "Text size," enter a number in px (the default is 26).

The font you choose here uses fonts installed on the player's device, so the look varies a little from device to device. To get the same look on every device, use a font file as follows.

## Use a font file

1. Open "Assets" at the top of the screen, and choose "Others" in the list on the left.
2. Click "Add files" and choose a font file (.otf, .ttf, .woff or .woff2).

![A font file added to Others in the assets.](/shots/en/h-font-assets.webp)

3. Go back to "Game settings," and under "Text," choose the file you added in "Font file."

![The font file and text size set. The text in the preview changes.](/shots/en/h-font-settings.webp)

The preview on the right and the text in the game use that font. If you also choose a "Font," characters that aren't in the font file are shown in that font.

![The game screen. The text uses the font from the font file, at 30px.](/shots/en/h-font-game.webp)

Use a font file whose license lets you distribute it with the game. Japanese fonts are large files, so when you export, you can subset the font to only the characters the game uses (see "Font subsetting" in [Default system screens](/en/docs/player/)).

## Fonts on the system screens

The font of system screens such as the menu, save and settings screens is set separately in "Font" under "System screens." Click "Menu" above the preview to check it on the menu screen.

![The system screen font set to Rounded.](/shots/en/h-font-system.webp)

## When the player changes it

On the "Display" tab of the game's Settings screen, players can change the font (Default, Serif, Sans, Rounded, UD) and the text size (80 to 200%). With "Default," the text is shown in the font you chose here.

## In code

Game settings go into `ui` in `liminalia.json` in the project folder.

```json
"ui": {
  "text": { "fontFile": "SourceHanCodeJP-Medium.otf", "size": 30 },
  "system": { "font": "\"Hiragino Maru Gothic ProN\", \"Zen Maru Gothic\", \"M PLUS Rounded 1c\", sans-serif" }
}
```
