# Fonts

## ▸ Location

&#x20;     **`lua\modules\lunera\core\cl_fonts.lua`**

## ▸ Parameters

&#x20;     ***`str`**`    ``prefix`*\
&#x20;                         prefix added to front of **id\_name** string

&#x20;     ***`str`**`    ``id_name`*\
&#x20;                         name used to call font entry

&#x20;     ***`str`**`    ``font`*\
&#x20;                         name of font used

&#x20;    ***`int`**`     ``size`*\
&#x20;                          size for font

&#x20;    ***`int`**`     ``weight`*\
&#x20;                          font weight ( *`100, 200, 300, 400, 500, 600, 700, 800`* )

&#x20;    ***`bool`**`    ``shadow`*\
&#x20;                          add shadow casting to the font

&#x20;    ***`bool`**`    ``extended`*\
&#x20;                          allow font to display glyphs outside Latin-1 range. \
&#x20;                          unicode code points above 0xFFFF are not supported.

&#x20;    ***`bool`**`    ``symbol`*\
&#x20;                          enables the use of symbolic fonts such as Webdings

## ▸ Structure

Each font has the following structure:

{% tabs %}
{% tab title="Structure Example" %}

```lua
_f( prefix, 'id_name', 'Font Name', size, weight, shadow, extended, sym )
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="lua\modules\lunera\core\cl\_fonts.lua" %}

```lua
_f( pf, 'g_section_name', 'Advent Pro Light', 32, 200 )
```

{% endtab %}
{% endtabs %}

## ▸ Saving Changes

After changing a font; you must execute the console command\
&#x20;     **`lunera.fonts.reload`**

## ▸ Notes

The only values you should modify are the **font name**, **size**, **weight**, and **shadow**.

If you wish to use a **custom font** that is not included with Garry's Mod; you must provide that font in a Steam Workshop collection for your server; or sync it to players using FastDL. This documentation does not include instructions on doing that; as it's outside the scope of what the purpose of this documentation is for.
