@@ -235,15 +235,14 @@ extern DECLSPEC TTF_Font * SDLCALL TTF_OpenFontIndex(const char *file, int ptsiz
235235 * size becomes the index of choosing which size. If the value is too high,
236236 * the last indexed size will be the default.
237237 *
238- * If `freesrc` is non-zero, the RWops will be closed before returning,
239- * whether this function succeeds or not. SDL_ttf reads everything it needs
240- * from the RWops during this call in any case .
238+ * If `freesrc` is non-zero, the RWops will be automatically closed once
239+ * the font is closed. Otherwise you should close the RWops yourself after
240+ * closing the font .
241241 *
242242 * When done with the returned TTF_Font, use TTF_CloseFont() to dispose of it.
243243 *
244244 * \param src an SDL_RWops to provide a font file's data.
245- * \param freesrc non-zero to close the RWops before returning, zero to leave
246- * it open.
245+ * \param freesrc non-zero to close the RWops when the font is closed, zero to leave it open.
247246 * \param ptsize point size to use for the newly-opened font.
248247 * \returns a valid TTF_Font, or NULL on error.
249248 *
@@ -260,9 +259,9 @@ extern DECLSPEC TTF_Font * SDLCALL TTF_OpenFontRW(SDL_RWops *src, int freesrc, i
260259 * size becomes the index of choosing which size. If the value is too high,
261260 * the last indexed size will be the default.
262261 *
263- * If `freesrc` is non-zero, the RWops will be closed before returning,
264- * whether this function succeeds or not. SDL_ttf reads everything it needs
265- * from the RWops during this call in any case .
262+ * If `freesrc` is non-zero, the RWops will be automatically closed once
263+ * the font is closed. Otherwise you should close the RWops yourself after
264+ * closing the font .
266265 *
267266 * Some fonts have multiple "faces" included. The index specifies which face
268267 * to use from the font file. Font files with only one face should specify
@@ -271,8 +270,7 @@ extern DECLSPEC TTF_Font * SDLCALL TTF_OpenFontRW(SDL_RWops *src, int freesrc, i
271270 * When done with the returned TTF_Font, use TTF_CloseFont() to dispose of it.
272271 *
273272 * \param src an SDL_RWops to provide a font file's data.
274- * \param freesrc non-zero to close the RWops before returning, zero to leave
275- * it open.
273+ * \param freesrc non-zero to close the RWops when the font is closed, zero to leave it open.
276274 * \param ptsize point size to use for the newly-opened font.
277275 * \param index index of the face in the font file.
278276 * \returns a valid TTF_Font, or NULL on error.
@@ -343,15 +341,14 @@ extern DECLSPEC TTF_Font * SDLCALL TTF_OpenFontIndexDPI(const char *file, int pt
343341 * size becomes the index of choosing which size. If the value is too high,
344342 * the last indexed size will be the default.
345343 *
346- * If `freesrc` is non-zero, the RWops will be closed before returning,
347- * whether this function succeeds or not. SDL_ttf reads everything it needs
348- * from the RWops during this call in any case .
344+ * If `freesrc` is non-zero, the RWops will be automatically closed once
345+ * the font is closed. Otherwise you should close the RWops yourself after
346+ * closing the font .
349347 *
350348 * When done with the returned TTF_Font, use TTF_CloseFont() to dispose of it.
351349 *
352350 * \param src an SDL_RWops to provide a font file's data.
353- * \param freesrc non-zero to close the RWops before returning, zero to leave
354- * it open.
351+ * \param freesrc non-zero to close the RWops when the font is closed, zero to leave it open.
355352 * \param ptsize point size to use for the newly-opened font.
356353 * \param hdpi the target horizontal DPI.
357354 * \param vdpi the target vertical DPI.
@@ -372,9 +369,9 @@ extern DECLSPEC TTF_Font * SDLCALL TTF_OpenFontDPIRW(SDL_RWops *src, int freesrc
372369 * size becomes the index of choosing which size. If the value is too high,
373370 * the last indexed size will be the default.
374371 *
375- * If `freesrc` is non-zero, the RWops will be closed before returning,
376- * whether this function succeeds or not. SDL_ttf reads everything it needs
377- * from the RWops during this call in any case .
372+ * If `freesrc` is non-zero, the RWops will be automatically closed once
373+ * the font is closed. Otherwise you should close the RWops yourself after
374+ * closing the font .
378375 *
379376 * Some fonts have multiple "faces" included. The index specifies which face
380377 * to use from the font file. Font files with only one face should specify
@@ -383,8 +380,7 @@ extern DECLSPEC TTF_Font * SDLCALL TTF_OpenFontDPIRW(SDL_RWops *src, int freesrc
383380 * When done with the returned TTF_Font, use TTF_CloseFont() to dispose of it.
384381 *
385382 * \param src an SDL_RWops to provide a font file's data.
386- * \param freesrc non-zero to close the RWops before returning, zero to leave
387- * it open.
383+ * \param freesrc non-zero to close the RWops when the font is closed, zero to leave it open.
388384 * \param ptsize point size to use for the newly-opened font.
389385 * \param index index of the face in the font file.
390386 * \param hdpi the target horizontal DPI.
0 commit comments