#font-rendering #font

pixglyph

Font-rendering with subpixel positioning

8 releases (5 breaking)

new 0.6.1 Jun 3, 2026
0.6.0 Nov 13, 2024
0.5.1 Oct 2, 2024
0.5.0 Aug 27, 2024
0.1.0 Mar 27, 2023

#19 in Data formats

Download history 2961/week @ 2026-02-14 2713/week @ 2026-02-21 4961/week @ 2026-02-28 6716/week @ 2026-03-07 6640/week @ 2026-03-14 7182/week @ 2026-03-21 7719/week @ 2026-03-28 8394/week @ 2026-04-04 6260/week @ 2026-04-11 10407/week @ 2026-04-18 12150/week @ 2026-04-25 7247/week @ 2026-05-02 12169/week @ 2026-05-09 12034/week @ 2026-05-16 12121/week @ 2026-05-23 15876/week @ 2026-05-30

53,229 downloads per month
Used in 47 crates (2 directly)

Apache-2.0

23KB
289 lines

OpenType glyph rendering.

  • 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.

Note on text: This library does not provide any capabilities to map text/characters to glyph ids. Instead, you should use a proper shaping library (like rustybuzz) to do this step. This will take care of proper glyph positioning, ligatures and more.

Note on emojis: This library only supports normal outlines. How to best render bitmap, SVG and colored glyphs depends very much on your rendering environment.


pixglyph

Crates.io Documentation

OpenType glyph rendering.

[dependencies]
pixglyph = "0.6"

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.

Dependencies

~760KB
~18K SLoC