Skip to content

[font] Support for EBDT format 1#246

Merged
andydotxyz merged 3 commits intomainfrom
ebdt1
Mar 28, 2026
Merged

[font] Support for EBDT format 1#246
andydotxyz merged 3 commits intomainfrom
ebdt1

Conversation

@benoitkugler
Copy link
Copy Markdown
Contributor

This PR adds support for bitmap black and white glyphs with Format1.

Since the rendering logic should be slightly different than other black and white format already supported, I have added a new format BlackAndWhiteByteAligned.

Closes #244

// Format 1: small metrics, byte-aligned data
// Format 2: small metrics, bit-aligned data
type BitmapData2 struct {
type BitmapData1or2 struct {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

BitmapData1Or2 sounds slighly better (to me)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done, thank you.

Copy link
Copy Markdown
Member

@whereswaldon whereswaldon left a comment

Choose a reason for hiding this comment

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

Thanks for addressing this so quickly!

@benoitkugler
Copy link
Copy Markdown
Contributor Author

Waiting for @andydotxyz approval since there is an API change.

@andydotxyz andydotxyz merged commit 48df487 into main Mar 28, 2026
14 checks passed
@benoitkugler benoitkugler deleted the ebdt1 branch March 28, 2026 16:55
@hajimehoshi
Copy link
Copy Markdown
Contributor

Thanks!

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.

EBDT image format 1 is not supported

4 participants