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

MultiColored text does not use kerning #15

Open
BNNorman opened this issue Apr 30, 2018 · 1 comment
Open

MultiColored text does not use kerning #15

BNNorman opened this issue Apr 30, 2018 · 1 comment

Comments

@BNNorman
Copy link
Owner

When calculating the length of a text message the code calls the relevant method for each font to find out the length of the message in pixels in order to create an image onto which the text is rendered before being sent to the panel.

The code handles multicolored text character by character and uses the individual character widths to place the characters. Unfortunately this results in the string being too long.

To solve the problem Multi-colored text needs to use kerning.

@BNNorman
Copy link
Owner Author

OPENCV/Font.py and PILFONT/Font.py have been updated to render multicolored text with the correct kerning so that plain colored text and multicolored will be of the same size.

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

1 participant