p

pixel-family

@preview

Inline pixel art characters for Typst — drop them into text like emoji

v0.2.1
MIT

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

2. Import in your Typst file

Add this to your .typ file:

#import "@preview/pixel-family:0.2.1": *

Version History

0.2.10.13.1
5f8ebf074476...
0.2.00.13.1
f93aafae7050...
0.1.00.13.1
3410de8bf9ab...

Pixel Family

CI build status

Inline pixel art characters for Typst, rendered as native vector graphics. Drop them into running text like emoji.

Download the manual (PDF)

Meet the Family

Pixel Family Gallery

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