Skip to main content
GameDev.net gamedev.net
🔒 Locked

SDL TTF text cut off

Started by menohack Jun 20, 2013 at 8:06 PM 0 replies 2.1k views
Original Post
menohack
menohack

As you can see from the picture when I render text from a certain font that I found it cuts off the top. Another similar font cut off the bottom. When I print using lazy.ttf from LazyFoo's tutorials it works fine. Is there something wrong with the fonts that I am using? I am using Pokemon GB from here. I am blitting using the entire surface (null for the srcRect).

Wooh
Wooh
I have experienced similar problems with fonts edited with FontForge. The original font worked fine with SDL_ttf but when exported from FontForge part of the text was cut off.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.