# WoopsiUI::FreeTypeCache Class Reference

`#include <freetypecache.h>`

List of all members.

## Public Member Functions
| FreeTypeCache (u32 cacheBytesSize=32768)
| ~FreeTypeCache ()
void | reset ()
void | loadSbit (FTC_ScalerRec scaler, u32 charMapIndex, u32 codepoint, FTC_SBit *sbit) const

## Detailed Description

Container for an FT_Library and 3 FreeType caches FTC_Manager, FTC_CMapCache and FTC_SBitCache.

## Constructor & Destructor Documentation

WoopsiUI::FreeTypeCache::FreeTypeCache | ( | u32 | cacheBytesSize = `32768` | ) |

Constructor.

Parameters:

  | cacheBytesSize | the number of bytes of the freetype font cache.

WoopsiUI::FreeTypeCache::~FreeTypeCache | ( |  | ) |

Destructor.

## Member Function Documentation

void WoopsiUI::FreeTypeCache::loadSbit | ( | FTC_ScalerRec | scaler,
|  | u32 | charMapIndex,
|  | u32 | codepoint,
|  | FTC_SBit * | sbit |
| ) |  |  | const

Loads a small bitmap (with metrics) of a glyph.

Parameters:

  | scaler | A scaler of the face (contains the face_id).
  | charMapIndex | The index of the charmap of the face.
  | codepoint | The Unicode codepoint of a glyph.
  | sbit | The sbit that will get the small bitmap.

void WoopsiUI::FreeTypeCache::reset | ( |  | ) | `[inline]`

Clear the FreeType font cache.

The documentation for this class was generated from the following file:

- freetypecache.h