hieroglyph

Crates.iohieroglyph
lib.rshieroglyph
version0.1.0
created_at2025-04-05 23:37:14.361538+00
updated_at2025-04-05 23:37:14.361538+00
descriptionRender obscure scripts and emojis locally with zero dependencies.
homepage
repositoryhttps://github.com/cptpiepmatz/hieroglyph
max_upload_size
id1622522
size9,778,485
Piepmatz (cptpiepmatz)

documentation

README

hieroglyph

Render obscure scripts and emojis locally with zero dependencies.


Crates.io Docs.rs License

hieroglyph is a text shaping and layout engine for rendering Unicode and emoji content without any system font dependencies. It uses statically embedded Noto and Twemoji fonts to produce pixel-precise output directly into RGBA buffers, suitable for GUIs, image generation, or text rendering in headless environments.

Installation

[dependencies]
hieroglyph = "0.1"

Usage

use hieroglyph::{DrawingContext, Segments};

let ctx = DrawingContext::new();
let segments = Segments::new("Hello 🌍 𓂀");

ctx.draw(&segments, |(x, y), color| {
    your_pixel_buffer.set_pixel(x, y, color.to_rgba());
});

Fonts

All required fonts are bundled into the binary:

At runtime, the font system maps each character to the correct asset in memory, with no external dependencies. Additional fonts can be manually registered if needed.

License

This project is licensed under the MIT License.

Commit count: 35

cargo fmt