Skip to content
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

Logger: nicer font rendering into framebuffer #213

Merged

Conversation

phip1611
Copy link
Contributor

This PR removes the ugly 8x8 bitmap font and replaces it by a much nicer alternative: noto-sans-mono-bitmap. It is similar size efficient (doesn't bloat the binary), no_std compatible, uses zero allocations, and no floating point operations.

Before:

image

After:

image

@phip1611 phip1611 force-pushed the replace-font8x8-with-noto-sans-mono branch from 6ba97ed to ed35368 Compare January 19, 2022 20:35
@phil-opp
Copy link
Member

Looks way better, thanks a lot for the PR and for writing this crate!

We should mention the crate in the Rust OSDev newsletter, it's probably useful to many other people too. Do you have some time to write add a few sentences about it to rust-osdev/homepage#84, or should I try to do it?

@phil-opp phil-opp merged commit fa61731 into rust-osdev:main Jan 20, 2022
@phip1611 phip1611 deleted the replace-font8x8-with-noto-sans-mono branch January 20, 2022 10:48
@phip1611
Copy link
Contributor Author

Thanks @phil-opp! Regarding the newsletter: Sure, great idea! I can do it.

@kennystrawnmusic
Copy link
Contributor

kennystrawnmusic commented Jan 29, 2022

These changes introduce an attribute change that generates needless compiler warnings on Rust 1.60+. I've submitted a pull request of my own to address this.

@bjorn3
Copy link
Contributor

bjorn3 commented Jan 29, 2022

They don't. The warnings are listed under "Unchanged files with check annotations" indicating that this PR didn't change it. It is the result of rustc nightly stabilizing the feature.

phil-opp added a commit that referenced this pull request Apr 9, 2022
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.

None yet

4 participants