# lv_font_fmt_txt_private.h (/api/private/font/fmt_txt/lv_font_fmt_txt_private_h)



<RelatedHeaders name="lv_font_fmt_txt.h" isPrivate="true" />

<ApiSummary enums="1" structs="2" />

Enums [#enums]

<ApiMember kind="enum" name="lv_font_fmt_rle_state_t" file="private/font/fmt_txt/lv_font_fmt_txt_private.h" line="50" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/src/font/fmt_txt/lv_font_fmt_txt_private.h#L50">
  lv_font_fmt_rle_state_t [#lv_font_fmt_rle_state_t]

  | Name                 | Value |
  | -------------------- | ----- |
  | `RLE_STATE_SINGLE`   | `0`   |
  | `RLE_STATE_REPEATED` |       |
  | `RLE_STATE_COUNTER`  |       |
</ApiMember>

Structs [#structs]

<ApiMember kind="struct" name="_lv_font_fmt_txt_glyph_loader_t">
  \_lv_font_fmt_txt_glyph_loader_t [#_lv_font_fmt_txt_glyph_loader_t]

  On demand glyph bitmap loader.

  | Member                | Type                                                                       | Description                                                                                                                                                       |
  | --------------------- | -------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `get_glyph_bitmap_cb` | `const uint8_t *(*)(lv_font_fmt_txt_glyph_loader_t *loader, uint32_t gid)` | Load the raw (i.e. still encoded the same way as `glyph_bitmap` would store it) bitmap of a glyph and return a pointer to it.<br /><br />Called with `lock` held. |
  | `lock`                | `lv_mutex_t`                                                               | Serializes the access to the shared scratch buffer and to the underlying source                                                                                   |
</ApiMember>

<ApiMember kind="struct" name="lv_font_fmt_rle_t">
  lv_font_fmt_rle_t [#lv_font_fmt_rle_t]

  | Member   | Type                                       | Description |
  | -------- | ------------------------------------------ | ----------- |
  | `rdp`    | `uint32_t`                                 |             |
  | `in`     | `const uint8_t *`                          |             |
  | `bpp`    | `uint8_t`                                  |             |
  | `prev_v` | `uint8_t`                                  |             |
  | `count`  | `uint8_t`                                  |             |
  | `state`  | <ApiLink name="lv_font_fmt_rle_state_t" /> |             |
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lvgl_public.h&#x22;, &#x22;lv_os_private.h&#x22;]" includedBy="[&#x22;lv_global.h&#x22;, &#x22;lvgl_private.h&#x22;]" />
