pixglyph

Crates.iopixglyph
lib.rspixglyph
version0.4.0
sourcesrc
created_at2023-03-27 09:01:49.693693
updated_at2024-06-01 13:53:47.229324
descriptionFont-rendering with subpixel positioning.
homepage
repositoryhttps://github.com/typst/pixglyph
max_upload_size
id821952
size210,937
Laurenz (laurmaedje)

documentation

README

pixglyph

Crates.io Documentation

OpenType glyph rendering.

[dependencies]
pixglyph = "0.4"

Features

  • Render glyph outlines into coverage bitmaps.
  • Place glyphs at subpixel offsets and scale them to subpixel sizes. This is important if you plan to render more than a single glyph since inter-glyph spacing will look off if every glyph origin must be pixel-aligned.
  • No font data structure you have to store somewhere. Just owned glyphs which you can load individually from a font, cache if you care about performance, and then render at any size.
  • No unsafe code.

License

This crate is licensed under the terms of the Apache 2.0 license.

Commit count: 20

cargo fmt