swash
Font introspection, complex text shaping and glyph rendering. (by dfrg)
allsorts
Font parser, shaping engine, and subsetter implemented in Rust (by yeslogic)
swash | allsorts | |
---|---|---|
10 | 10 | |
561 | 696 | |
- | 1.0% | |
6.5 | 8.4 | |
about 1 month ago | 4 months ago | |
Rust | Rust | |
MIT or Apache 2.0 | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
swash
Posts with mentions or reviews of swash.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-03.
-
Looking for this. html + css rendering through wgpu.
If you were to implement this yourself, i'd look into either swash or cosmic-text for the text rendering stack (this is one of the things you really don't want to write from the ground up). For accessibility, AccessKit has quickly become the standard for communicating with crossplatform accessibility APIs in rust GUI. lightningcss (or its lower level counterpart cssparser) are both decent options for CSS parsing. Taffy handles some of what browsers offer for a layout engine, but is still being worked on.
- Any suggestion for gpu text rendering?
- Cosmic Text: Pure Rust multi-line text handling
-
Font rendering and layout crates
You probably want to take a look at swash.
-
Bachelor idea to help the rust community
https://github.com/dfrg/swash which does text-shaping and could be built upon
-
I'm giving out microgrants to open source projects for the third year in a row! Brag about your projects here so I can see them, big or small!
swash - A shaping engine that advertises performance comparable to HarfBuzz, and surpassing it in some cases. Tests are in-progress.
-
Whats your favourite open source Rust project that needs more recognition?
swash: a pure Rust shaping engine like Harfbuzz with competitive performance.
- Font introspection, complex text shaping and glyph rendering in Rust
- Text Rendering w/ HarfBuzz, FreeType and OpenGL
- swash: Complex text shaping and glyph rasterization in pure Rust
allsorts
Posts with mentions or reviews of allsorts.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-02.
- Cosmic Text: Pure Rust multi-line text handling
-
Is it conveninent to make cross-platform GUI softwares using Rust now?
But again you don't need to reinvent text layout from scratch (that's my discussion, BTW) if you use the platform's native text drawing facilities, like DirectWrite on Windows, or CoreText on macOS.
-
Getting a pointer to a field of an enum
All these layers of Cows create an extremely complex lifetime tree and it's actually not possible to factor out the complex parsing steps into functions because they depend on a lot of stuff. (trying to return an OutlineBuilder from a function would dangling reference about 3 different temporaries, for example. Obtaining the temporaries is part of the parsing step)
-
Rust's Option and Result. In Python.
machine learning, neural networks, image processing, cryptography (though it is getting better), font shaping/rendering (though it is getting better), CPU/software rendering (though it is getting better)
-
What's the project you're currently working on at your company as a Rust developer?
It can be used for the things you suggest but our driving use case is font parsing. The goal is to use it to generate the font parsing code in Allsorts, which is ultimately used in Prince.
-
Question: Expected webrender impact, or influence, on emacs redisplay
Use allsorts or rustbuzz for text shaping
- Text Rendering w/ HarfBuzz, FreeType and OpenGL
-
Text Rendering
Loader -> Allsorts
-
Speedy2D: Easy-to-use library for graphics, text, and input events
It's something I'd like to improve on in future -- are there any pure-Rust libraries you'd recommend for shaping? Allsorts looks quite promising.
- Ask HN: How do you use Rust at work?
What are some alternatives?
When comparing swash and allsorts you can also consider the following projects:
rusttype - Mirror of https://gitlab.redox-os.org/redox-os/rusttype
rustybuzz - A complete harfbuzz's shaping algorithm port to Rust
fontdue - The fastest font renderer in the world, written in pure rust.
rust-harfbuzz - Rust bindings to HarfBuzz
pathfinder - A fast, practical GPU rasterizer for fonts and vector graphics
kiss3d - Keep it simple, stupid 3d graphics engine for Rust.
glium - Safe OpenGL wrapper for the Rust language.
ab-glyph - Rust API for loading, scaling, positioning and rasterizing OpenType font glyphs
lingua-rs - The most accurate natural language detection library for Rust, suitable for short text and mixed-language text
tauri - Build smaller, faster, and more secure desktop applications with a web frontend.