Skip to content

Fix loading monospace font#4779

Merged
Grantim merged 2 commits intomasterfrom
Fix_loading_monospace_font
Jul 1, 2025
Merged

Fix loading monospace font#4779
Grantim merged 2 commits intomasterfrom
Fix_loading_monospace_font

Conversation

@Grantim
Copy link
Contributor

@Grantim Grantim commented Jul 1, 2025

No description provided.

@Grantim Grantim requested a review from Fedr July 1, 2025 12:12
box.include( Vector2f( glyph.X1, glyph.Y1 ) );
fontRef.scaledOffset = 0.5f * ( Vector2f::diagonal( fontSize ) - box.size() ) - box.min;
fontRef.scaledOffset.x = std::floor( fontRef.scaledOffset.x );
fontRef.scaledOffset.x = std::round( -box.min.x );
Copy link
Contributor

Choose a reason for hiding this comment

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

may be add comment why not std::floor( fontRef.scaledOffset.x )?

@Grantim Grantim merged commit 56baa21 into master Jul 1, 2025
27 of 29 checks passed
@Grantim Grantim deleted the Fix_loading_monospace_font branch July 1, 2025 13:00
MaxRayskiy pushed a commit that referenced this pull request Sep 27, 2025
* Fix loading monospace font

* add comment
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