Skip to content

Conversation

@Blitz54
Copy link

@Blitz54 Blitz54 commented Oct 18, 2025

Vibe coded for italics. Preview box doesn't update with italic toggle yet

Blitz54 and others added 8 commits October 18, 2025 00:50
Fixes the bold text generation where some glyphs has weird slashes through them

Those diagonal streaks came from how we read the grayscale bitmap that Win32 gives back: each glyph row is padded to a 4-byte stride, but the old loop assumed rows were laid out tightly. When the glyph width isn’t a multiple of four (Liberation Sans 18 px “p” is 11px wide), we started sampling the next row at the wrong offset, hence the slanted lines.

The copy loop now computes the stride correctly, guards against under/overflow on the destination row, and uses the right slice of the buffer for each scanline
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.

1 participant