.\" This manpage content is licensed under Creative Commons .\" Attribution 4.0 International (CC BY 4.0) .\" https://creativecommons.org/licenses/by/4.0/ .\" This manpage was generated from SDL_ttf's wiki page for TTF_RenderGlyph_Blended: .\" https://wiki.libsdl.org/SDL_ttf/TTF_RenderGlyph_Blended .\" Generated with SDL/build-scripts/wikiheaders.pl .\" revision 3~git20240320~6e260a2+ds-1 .\" Please report issues in this manpage's content at: .\" https://github.com/libsdl-org/sdlwiki/issues/new .\" Please report issues in the generation of this manpage from the wiki at: .\" https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20TTF_RenderGlyph_Blended .\" SDL_ttf can be found at https://libsdl.org/projects/SDL_ttf .de URL \$2 \(laURL: \$1 \(ra\$3 .. .if \n[.g] .mso www.tmac .TH TTF_RenderGlyph_Blended 3 "SDL_ttf 3.0.0" "SDL_ttf" "SDL_ttf3 FUNCTIONS" .SH NAME TTF_RenderGlyph_Blended \- Render a single 16-bit glyph at high quality to a new ARGB surface\[char46] .SH SYNOPSIS .nf .B #include \(dqSDL3_ttf/SDL_ttf.h\(dq .PP .BI "SDL_Surface * TTF_RenderGlyph_Blended(TTF_Font *font, .BI " Uint16 ch, SDL_Color fg); .fi .SH DESCRIPTION This function will allocate a new 32-bit, ARGB surface, using alpha blending to dither the font with the given color\[char46] This function returns the new surface, or NULL if there was an error\[char46] The glyph is rendered without any padding or centering in the X direction, and aligned normally in the Y direction\[char46] Note that this version of the function takes a 16-bit character code, which covers the Basic Multilingual Plane, but is insufficient to cover the entire set of possible Unicode values, including emoji glyphs\[char46] You should use .BR TTF_RenderGlyph32_Blended () instead, which offers the same functionality but takes a 32-bit codepoint instead\[char46] The only reason to use this function is that it was available since the beginning of time, more or less\[char46] You can render at other quality levels with .BR TTF_RenderGlyph_Solid , .BR TTF_RenderGlyph_Shaded , and .BR TTF_RenderGlyph_LCD \[char46] .SH FUNCTION PARAMETERS .TP .I font the font to render with\[char46] .TP .I ch the character to render\[char46] .TP .I fg the foreground color for the text\[char46] .SH RETURN VALUE Returns a new 32-bit, ARGB surface, or NULL if there was an error\[char46] .SH AVAILABILITY This function is available since SDL_ttf 3\[char46]0\[char46]0\[char46] .SH SEE ALSO .BR TTF_RenderGlyph32_Blended (3)