:github_url: hide

.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
.. DO NOT EDIT THIS FILE, but the TLGDFontWrapper.xml source instead.
.. The source is found in doc/classes or modules/<name>/doc_classes.

.. _class_TLGDFontWrapper:

TLGDFontWrapper
===============

**Inherits:** 

**Category:** Core

Brief Description
-----------------



Properties
----------

+-----------------------------------------+------------------------------------------------------------------------+-----------+
| :ref:`TLFontFamily<class_TLFontFamily>` | :ref:`base_font<class_TLGDFontWrapper_property_base_font>`             |           |
+-----------------------------------------+------------------------------------------------------------------------+-----------+
| int                                     | :ref:`base_font_size<class_TLGDFontWrapper_property_base_font_size>`   | 12        |
+-----------------------------------------+------------------------------------------------------------------------+-----------+
| String                                  | :ref:`base_font_style<class_TLGDFontWrapper_property_base_font_style>` | "Regular" |
+-----------------------------------------+------------------------------------------------------------------------+-----------+
| int                                     | :ref:`cache_depth<class_TLGDFontWrapper_property_cache_depth>`         | 100       |
+-----------------------------------------+------------------------------------------------------------------------+-----------+

Description
-----------

Subclass Font to use with default Godot controls, provides limited shaping support.

Note: This class is only available if module is built with ``use_font_wrapper=true`` flag.

Property Descriptions
---------------------

.. _class_TLGDFontWrapper_property_base_font:

- :ref:`TLFontFamily<class_TLFontFamily>` **base_font**

.. table::
   :class: longtable
   :widths: 7 20

   +----------+----------------------+
   | *Setter* | set_base_font(value) |
   +----------+----------------------+
   | *Getter* | get_base_font()      |
   +----------+----------------------+

Base font to wrap.

----

.. _class_TLGDFontWrapper_property_base_font_size:

- int **base_font_size**

.. table::
   :class: longtable
   :widths: 7 20

   +-----------+---------------------------+
   | *Default* | 12                        |
   +-----------+---------------------------+
   | *Setter*  | set_base_font_size(value) |
   +-----------+---------------------------+
   | *Getter*  | get_base_font_size()      |
   +-----------+---------------------------+

Base font size.

----

.. _class_TLGDFontWrapper_property_base_font_style:

- String **base_font_style**

.. table::
   :class: longtable
   :widths: 7 20

   +-----------+----------------------------+
   | *Default* | "Regular"                  |
   +-----------+----------------------------+
   | *Setter*  | set_base_font_style(value) |
   +-----------+----------------------------+
   | *Getter*  | get_base_font_style()      |
   +-----------+----------------------------+

Base font style.

----

.. _class_TLGDFontWrapper_property_cache_depth:

- int **cache_depth**

.. table::
   :class: longtable
   :widths: 7 20

   +-----------+------------------------+
   | *Default* | 100                    |
   +-----------+------------------------+
   | *Setter*  | set_cache_depth(value) |
   +-----------+------------------------+
   | *Getter*  | get_cache_depth()      |
   +-----------+------------------------+

Number of shaped strings to keep in cache.

