Skip to content

Fix font alignment for the 'Add Text' tool#55

Merged
Nidrax merged 1 commit into
trunkfrom
nidrax/fix-font-alignment
Jun 15, 2026
Merged

Fix font alignment for the 'Add Text' tool#55
Nidrax merged 1 commit into
trunkfrom
nidrax/fix-font-alignment

Conversation

@Nidrax

@Nidrax Nidrax commented Jun 15, 2026

Copy link
Copy Markdown
Member

Character glyphs in the textline were incorrectly aligned to the top when generating font previews in the 'Add Text' menu and in the pasted text bitmap.

This commit fixes the glyph positioning in both the render_text() function and the calcTextBounds() helper function accordingly to how the glyph positioning is handled in src/she/common/generic_surface.h.

Fixes #18

@Nidrax Nidrax added the 🪲bug Something isn't working label Jun 15, 2026
Character glyphs in the textline were incorrectly aligned to the top when
generating font previews in the 'Add Text' menu and in the pasted text bitmap.

This commit fixes the glyph positioning in both the render_text() function and
the calcTextBounds() helper function accordingly to how the glyph positioning
is handled in `src/she/common/generic_surface.h`.

Fixes #18
@Nidrax Nidrax force-pushed the nidrax/fix-font-alignment branch from 2ceae02 to ef2c4a6 Compare June 15, 2026 00:05
@Nidrax Nidrax merged commit ebc8143 into trunk Jun 15, 2026
11 checks passed
@Nidrax Nidrax deleted the nidrax/fix-font-alignment branch June 15, 2026 01:07
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.

Wrong font alignment in the Text tool

1 participant