-
Notifications
You must be signed in to change notification settings - Fork 317
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
Text rendering quality improvements. #3855
Conversation
/// Also, you can interactively change the values by holding `ctrl + alt + o` or `ctrl + alt + e` | ||
/// keys and using the `+` and `-` key to increment or decrement the value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Known to not work on Windows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be fixed one day :(
lazy_static! { | ||
/// A global hinting map for fonts. Map a platform and a font nam pair to hinting information. | ||
/// See [`Hinting`] to learn more. | ||
pub static ref HINTING_MAP: HashMap<(Option<platform::Platform>, &'static str), Hinting> = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps https://doc.rust-lang.org/std/cell/struct.OnceCell.html could be used?
Pull Request Description
This PR:
mplus1p
font. You can use it now without issues. The default app font should be switched to this font in the future.Important
The glyph hinting could not work perfectly on all systems. It looks really good now on macOS (retinas), but can be suboptimal on Linux and Windows. We need to update MSDFgen library to fix some bugs and after that, the hinting on these systems will improve.
Checklist
Please include the following checklist in your PR:
Scala,
Java,
and
Rust
style guides.
./run ide build
and./run ide watch
.