.\" 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_SetFontSizeDPI: .\" https://wiki.libsdl.org/SDL_ttf/TTF_SetFontSizeDPI .\" Generated with SDL/build-scripts/wikiheaders.pl .\" revision 3.2.2-no-vcs .\" 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_SetFontSizeDPI .\" 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_SetFontSizeDPI 3 "SDL_ttf 3.2.2" "SDL_ttf" "SDL_ttf3 FUNCTIONS" .SH NAME TTF_SetFontSizeDPI \- Set font size dynamically with target resolutions, in dots per inch\[char46] .SH HEADER FILE Defined in SDL3_ttf/SDL_ttf\[char46]h .SH SYNOPSIS .nf .B #include \(dqSDL3_ttf/SDL_ttf.h\(dq .PP .BI "bool TTF_SetFontSizeDPI(TTF_Font *font, float ptsize, int hdpi, int vdpi); .fi .SH DESCRIPTION This updates any .BR TTF_Text objects using this font, and clears already-generated glyphs, if any, from the cache\[char46] .SH FUNCTION PARAMETERS .TP .I font the font to resize\[char46] .TP .I ptsize the new point size\[char46] .TP .I hdpi the target horizontal DPI\[char46] .TP .I vdpi the target vertical DPI\[char46] .SH RETURN VALUE Returns true on success or false on failure; call SDL_GetError() for more information\[char46] .SH THREAD SAFETY This function should be called on the thread that created the font\[char46] .SH AVAILABILITY This function is available since SDL_ttf 3\[char46]0\[char46]0\[char46] .SH SEE ALSO .BR \(bu (3), .BR TTF_GetFontSize (3), .BR \(bu (3), .BR TTF_GetFontSizeDPI (3)