-
Notifications
You must be signed in to change notification settings - Fork 79
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 #36
Comments
First tests added, see PR #35 |
Hi @FabianWildgrube, thx for working on this! One minor thing -- please don't create new branches in the maplibre/maplibre-rs -- it is better to create new branches in your own FabianWildgrube/maplibre-rs repo, and create PRs against the main one. Thx! |
Oh I see. Sorry about that! I'll close the PR and delete the branch here and open a new PR from my fork instead 👍 |
New draft PR from my Fork is open: #40 |
Thanks @FabianWildgrube :) |
@maxammann In your Publication [maplibre-rs: toward portable map renderers], the table includes this Rust project: |
Definitely interesting project, indeed! The challenge of text rendering is quite different though when rasterizing on the CPU instead of the GPU. The other interesting challenge is text rendering is text shaping (text rendering = glyph rendering + text shaping). It seems like a naive text shaping is used though: https://github.com/dfyz/osm-renderer/blob/bf95b10885ef09d99b251e243fa2d17b0c693e96/src/draw/font/text_placer.rs |
Here is some comparision between libraries used in bevy: https://hackmd.io/-0nNajS9QaGNu9FWg41ziA |
We need to add support for rendering arbitrary text (labels, street names, etc.). An ideal solution would have the following properties:
This poses numerous challenges and likely no solution exists that fulfils all of these criteria. But since this is a clean-slate project we might as well try 🤷 😉
The text was updated successfully, but these errors were encountered: