# SDL\_ttf and small font size bugs

**URL:** <https://discourse.libsdl.org/t/sdl-ttf-and-small-font-size-bugs/10769>\
**Category:** SDL Development\
**Created:** [May 17, 2004, 4:25am UTC](https://discourse.libsdl.org/t/sdl-ttf-and-small-font-size-bugs/10769 "2004-05-17T04:25:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Warren\_Schwader](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@Warren\_Schwader](https://discourse.libsdl.org/u/Warren_Schwader)\
**Post date:** [May 17, 2004, 4:25am UTC](https://discourse.libsdl.org/t/sdl-ttf-and-small-font-size-bugs/10769/1 "2004-05-17T04:25:07Z")

</div>

Is there an SDL\_ttf known bug when using font sizes of 12 or smaller? I am  
experiencing one.

My call to TTF\_RenderText\_Blended is coming back NULL. When I check  
SDL\_GetError() there is no error set. I’ve verified that all of my input is  
correct and perfect.

In SDL\_ttf2.c version 1.12 this is the comment:  
Sam Lantinga - Sun Dec 1 18:34:40 PST 2002

- Fixed memory corruption problem with small point sizes

Thanks for considering this,  
–Warren Schwader

---

<div class="post-metadata">

**Author:** ![Florian\_Hufsky](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/f/e9a140/32.png) [@Florian\_Hufsky](https://discourse.libsdl.org/u/Florian_Hufsky)\
**Post date:** [June 6, 2004, 10:45am UTC](https://discourse.libsdl.org/t/sdl-ttf-and-small-font-size-bugs/10769/2 "2004-06-06T10:45:28Z")

</div>

you could check the code of ttf\_rendertext and look where the function  
returns null and no error is set.

Warren Schwader wrote:\>Is there an SDL\_ttf known bug when using font sizes of 12 or smaller? I am

> experiencing one.
> 
> My call to TTF\_RenderText\_Blended is coming back NULL. When I check  
> SDL\_GetError() there is no error set. I’ve verified that all of my input is  
> correct and perfect.
> 
> In SDL\_ttf2.c version 1.12 this is the comment:  
> Sam Lantinga - Sun Dec 1 18:34:40 PST 2002
> 
> - Fixed memory corruption problem with small point sizes
> 
> Thanks for considering this,  
> –Warren Schwader
> 
> * * *
> 
> SDL mailing list  
> SDL at [libsdl.org](http://libsdl.org)  
> [http://www.libsdl.org/mailman/listinfo/sdl](http://www.libsdl.org/mailman/listinfo/sdl)
