SDL_DEBUG_TEXT_FONT_CHARACTER_SIZE(3)

πŸ’– SDL_DEBUG_TEXT_FONT_CHARACTER_SIZE(3) πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and lemme tell you, this one is a lil baby page but it's lowkey iconic πŸŽ€


✨ NAME ✨

SDL_DEBUG_TEXT_FONT_CHARACTER_SIZE β€” the size, in pixels, of a single SDL_RenderDebugText() character. that's it. that's the whole vibe πŸ’…


✨ SYNOPSIS ✨

#include <SDL3/SDL_render.h>

#define SDL_DEBUG_TEXT_FONT_CHARACTER_SIZE 8

✨ DESCRIPTION ✨

so the way this works is: the font is monospaced and square, which means this one number applies to every single character. no cap. πŸ¦‹

like, every glyph is the same width and the same height, so there's no "oh but the W is wider than the i" drama here. one size, all characters, periodt. πŸ‘‘


✨ AVAILABILITY ✨

this macro is available since SDL 3.2.0. so if you're on anything older, bestie... no you're not getting it, sorry not sorry 😭


✨ SEE ALSO ✨


okay that's the page!! it's giving short and sweet and honestly obsessed with how simple this is 🌸

this was brought to you by Simple Directmedia Layer, SDL 3.4.18, and the manual page name SDL_DEBUG_TEX...HARACTER_SIZE(3) (yes the title gets truncated in the header, that's just how it is, don't @ me) πŸŽ€βœ¨ bye bestie, go render some debug text πŸ’–πŸ¦‹

πŸ“¦ where this page comes from