Skip to content

Add raw output to SimulatorDisplay #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 2, 2021
Merged

Conversation

rfuest
Copy link
Member

@rfuest rfuest commented Jun 1, 2021

This PR adds to_{be, le, ne}_bytes methods to SimulatorDisplay. I'm using this feature in the new font conversion tool, which uses a SimulatorDisplay to draw the image of the glyphs. This image can then be exported to PNG and RAW files. IMO this feature could also be useful for other applications that need to generate data for use with RawImage.

I've also changed the PNG compression to Best. This can significantly reduce the size of the generated PNG files, which also reduces the size of the inlined images in the docs.

@rfuest rfuest requested a review from jamwaffles June 1, 2021 17:16
Copy link
Member

@jamwaffles jamwaffles left a comment

Choose a reason for hiding this comment

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

Looks good. I'm interested to see the image size reduction :)

@rfuest
Copy link
Member Author

rfuest commented Jun 2, 2021

I'm interested to see the image size reduction :)

If I remember correctly, the current version of the fonts in e-g was already generated with this patch applied.

@rfuest rfuest merged commit 5f25faf into embedded-graphics:master Jun 2, 2021
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