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 β¨
SDL_RenderDebugText(3)β the function this constant is literally about, go read it next fr fr π
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
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms