Skip to content

Bug fix. Rendering of text using U8g2 fonts now obeys previously defined left and upper text bounds set with setTextBound.#785

Open
bfranke1973 wants to merge 1 commit intomoononournation:masterfrom
bfranke1973:fix-bug
Open

Bug fix. Rendering of text using U8g2 fonts now obeys previously defined left and upper text bounds set with setTextBound.#785
bfranke1973 wants to merge 1 commit intomoononournation:masterfrom
bfranke1973:fix-bug

Conversation

@bfranke1973
Copy link
Copy Markdown

This is a bug fix addressing the issue that text rendered using U8g2 fonts doesn't fully obey previously set text bounds, especially for the left and upper borders (_min_text_x, _min_text_x). The fix involves several small changes, which introduce additional checks. Checks include whether a character is completely outside the defined text bound, or partially outside in which case the character is partially rendered. The fix has been tested for text sizes == 1 and >1.

…ned left and upper text bounds set with setTextBound.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this file is here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, sorry. This is a backup file that my editor had created. This shouldn't be here.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries! 😁

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.

2 participants