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

Working on non-zero-starting and non-monospace fonts #15

Open
KelvinShadewing opened this issue Nov 24, 2018 · 1 comment
Open

Working on non-zero-starting and non-monospace fonts #15

KelvinShadewing opened this issue Nov 24, 2018 · 1 comment

Comments

@KelvinShadewing
Copy link
Owner

I got monospace bitmap fonts working, but with a limitation: if the font started at a non-zero number and the script attempts to draw a character that's before the font's starting character, it would segfault. I added a skip that was meant to make it ignore characters before the starting character, but it still happened, and now, I can't even get it to run at all without immediately crashing. I even tried to go back to a previous version of the code that did work, and it still doesn't work! I don't know what I did wrong, I don't know how to get it working again, and I'm still no closer to fixing drawing text with fonts that don't start at null.

@KelvinShadewing KelvinShadewing changed the title Text rendering doesn't work at all now. Working on non-zero-starting and non-monospace fonts Nov 24, 2018
@KelvinShadewing
Copy link
Owner Author

OK, so I fixed the segfault issue... sort of. A call to SDL_QueryTexture was causing them, though I don't know why it's just now starting to do this, and now that I think about it, I don't remember why I was using it in the first place. If I find a need for it, I've only commented it out for now, but now the big issue is fixing what's in the new title.

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

No branches or pull requests

1 participant