Crates.io | kaku |
lib.rs | kaku |
version | |
source | src |
created_at | 2024-07-15 14:01:19.810829 |
updated_at | 2024-07-15 14:01:19.810829 |
description | A text rendering crate for wgpu using signed distance fields |
homepage | |
repository | https://github.com/villuna/kaku |
max_upload_size | |
id | 1303885 |
size | 0 |
A text rendering crate for rust+wgpu, with the ability to use signed distance fields.
Without going into details, signed distance fields are a way of representing a shape (such as a character in a font) in a way that allows for high quality upscaling, reducing memory usage. It also allows you to render certain effects such as outlines in a way that is very performant.
While SDF rendering has many benefits, it also takes a little bit longer to generate the textures for each character than with basic texture-based rendering. So this crate provides both methods of text rendering.
Here is a screenshot of the demo example, showing some of the things kaku can do:
This example shows the same text: