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

Respect BBX offset in glyph parser #1534

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

Conversation

WardBrian
Copy link

This would close #1521

The commit identified there (39953b7) changed the font parsing to no longer need a left shift, but this meant the offset was no longer used at all.

This introduces a right shift. On the font I was using (https://github.com/MLB-LED-Scoreboard/mlb-led-scoreboard/blob/2bbabaf6c100bd5df197abf76943d08d8c39f3aa/assets/fonts/patched/4x6.bdf) this now re-recreates the exact parse as the older code (except it is now 196 bits wide, rather than 64 bits), and the font characters are now correctly offset.

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.

DrawText() always left-aligns glyphs even when they specify an offset in BBX field
1 participant