getDescent method

int getDescent()

Query the offset from the baseline to the bottom of a font.

This is a negative value, relative to the baseline.

\param font the font to query. \returns the font's descent.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL_ttf 3.0.0.

extern SDL_DECLSPEC int SDLCALL TTF_GetFontDescent(const TTF_Font *font)

Implementation

int getDescent() {
  return ttfGetFontDescent(this);
}