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

Fix mono-mode font rendering issues #480

Merged
merged 3 commits into from
Apr 19, 2024

Conversation

a740g
Copy link
Contributor

@a740g a740g commented Apr 18, 2024

This PR addresses an issue initially reported here.

The primary fix ensures accurate generation of mono glyph bitmaps for non-true-color screen modes. Similar adjustments have been made to the calculation of monospace width.

It also introduces a quality-of-life enhancement where the system now automatically detects whether the underlying font is fixed-width. If so, the monospaceWidth variable is appropriately updated. This allows _FONTWIDTH to accurately report the font width of fixed-width fonts, even in the absence of "monospace" usage.

@a740g a740g added the bug Something isn't working label Apr 18, 2024
@a740g a740g self-assigned this Apr 18, 2024
@a740g a740g merged commit 2ec2bf4 into QB64-Phoenix-Edition:main Apr 19, 2024
4 checks passed
@a740g a740g deleted the alt-font-rendering branch April 19, 2024 05:17
@a740g a740g mentioned this pull request May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants