Package Information
- Last Updated
- Minimum Typst Version
- 0.13.1
- Authors
- GiggleLiu
- Categories
- components
1. Get the package
Download the package using the TPIX CLI:
tpix get @preview/pixel-family:0.2.12. Import in your Typst file
Add this to your .typ file:
#import "@preview/pixel-family:0.2.1": *Pixel Family
Inline pixel art characters for Typst, rendered as native vector graphics. Drop them into running text like emoji.
Meet the Family
Their names come from the cast of cryptography: Alice and Bob exchange secret messages, Eve eavesdrops, Frank forges signatures, Grace certifies keys, Trent arbitrates, Mallory attacks, and Victor verifies.
Vote for your favorite character!
Quick Start
#import "@preview/pixel-family:0.2.1": *
Hello #bob() and #alice() are talking while #eve() listens.
Characters default to 1em and center-align with surrounding text. Pass size for explicit sizing:
#bob(size: 3cm)
Use baseline: 0pt for bottom alignment:
#bob(size: 3cm, baseline: 0pt)
Color Customization
Every character accepts skin, hair, shirt, and pants:
#bob(size: 3cm, hair: blue, shirt: red)
#alice(size: 3cm, hair: black, shirt: green)
Built-in skin tone presets: skin-default, skin-light, skin-medium, skin-dark.
License
MIT