pixglyph

Crates.iopixglyph
lib.rspixglyph
version0.5.1
sourcesrc
created_at2023-03-27 09:01:49.693693
updated_at2024-10-02 09:46:55.424666
descriptionFont-rendering with subpixel positioning.
homepage
repositoryhttps://github.com/typst/pixglyph
max_upload_size
id821952
size211,818
Laurenz (laurmaedje)

documentation

README

pixglyph

Crates.io Documentation

OpenType glyph rendering.

[dependencies]
pixglyph = "0.5"

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: 24

cargo fmt