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

fixed missing first line of custom font #404

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

davedarko
Copy link

The problem: the first line of custom fonts are drawn offscreen (in any size)

The fix: In the drawChar function I've added yAdvance from the custom font construct to the sum of all the data for the y coordinate of the pixel, so that the characters are drawn further down.

There might be many people out there with work arounds already.

added yAdvance of the custom font to the sum of y coordinates for the font, so that the first line isn't drawn offscreen anymore
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

Successfully merging this pull request may close these issues.

1 participant