Skip to content

Restore fonts.rb + fix glyph_width API - #13

Merged
ronaldtse merged 1 commit into
mainfrom
fix/restore-fonts-glyph-width
Aug 4, 2026
Merged

Restore fonts.rb + fix glyph_width API#13
ronaldtse merged 1 commit into
mainfrom
fix/restore-fonts-glyph-width

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Fixes corruption from PR #12

Restore fonts.rb from commit 9af86e0 (before corruption) and apply:
- glyph_width(resource, codepoint) correct parameter order
- Missing glyphs (cp > 255) return 0
- glyph_widths accepts codepoint arrays
- units_per_em: 1000 in metrics hash
@ronaldtse
ronaldtse merged commit b9db3a9 into main Aug 4, 2026
@ronaldtse
ronaldtse deleted the fix/restore-fonts-glyph-width branch August 4, 2026 01:29
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