# Fonts

## <mark style="color:red;">▸ Location</mark>

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

## <mark style="color:red;">▸ Parameters</mark>

&#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

## <mark style="color:red;">▸ Structure</mark>

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\liko\core\cl\_fonts.lua" %}

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

{% endtab %}
{% endtabs %}

## <mark style="color:red;">▸ Saving Changes</mark>

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

## <mark style="color:red;">▸ Notes</mark>

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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://vliss.rlib.io/fonts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
