Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text not working on MacOS #134

Open
cclark2a opened this issue Mar 14, 2022 · 3 comments
Open

text not working on MacOS #134

cclark2a opened this issue Mar 14, 2022 · 3 comments

Comments

@cclark2a
Copy link

I followed the README steps to build and run testcard.c on a MacBook Pro (2017) running Monterey 12.2.1. It builds and runs fine, except that the text is scrambled. I built my simple2d program using Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: x86_64-apple-darwin21.3.0 and got the same result. Here's a screenshot:

image

I'm happy to put in time debugging to see what's going wrong. Let me know how I can help.

@blacktm
Copy link
Member

blacktm commented Mar 29, 2022

Hi @cclark2a. In SDL_ttf 2.0.18, the resulting surface has changed. We'll have to repack it using the instructions here.

@StefanSchippers
Copy link

Exact same problem on a Debian machine with sdl_ttf 2.20.1. I have seen the above issue about surface change in SDL_ttf, however wondering what I should do to get text working in the example. I was exploring simple2d to learn OpenGL to do simple 2D graphics.

@5quinque
Copy link

5quinque commented Apr 7, 2024

If you're still looking for a solution, I have a PR here: #141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants