
rotulo
Monoline typeface generated from skeletons: strokes of lines and arcs expanded with a round pen.
Every letter is a skeleton of straight lines and arcs drawn in code, never a hand-drawn outline. The generator expands each skeleton with a round pen and writes TrueType and WOFF2 fonts. Weight is the pen width, so the family is a variable font from 200 to 700. A reading cut, Lectura, adds weight, spacing and letters that are hard to mirror. Rotulo Sans is a sober companion for headings and interfaces, built by the same engine.
Install
npm install rotulo
pip install rotulo
| Package | What it is | Needs |
|---|---|---|
rotulo (npm) |
WOFF2 files, a stylesheet with the @font-face rules and SDF glyphs for MapLibre |
A bundler that resolves CSS imports, or a plain <link> |
rotulo (PyPI) |
The generator: builds every font from the skeletons | Python 3.12 or later |
The TTF files are attached to each GitHub release.
Quick start
@import 'rotulo';
body {
font-family: 'Rotulo', system-ui, sans-serif;
font-weight: 200;
}
.reading {
font-family: 'Rotulo Lectura', 'Rotulo', sans-serif;
}
h2,
nav {
font-family: 'Rotulo Sans', system-ui, sans-serif;
font-weight: 500;
}
python -m rotulo --out build --web build/web
Fonts
| Family | File | Weight | Use |
|---|---|---|---|
Rotulo |
Rotulo-Variable.woff2, .ttf |
200 to 700 | Map labels, interface, titles |
Rotulo |
Rotulo-Display.ttf |
200, static and hinted | Renderers without variable fonts, such as GeoServer or PDF libraries |
Rotulo Lectura |
Rotulo-Lectura.woff2, .ttf |
500, static and hinted | Long reading |
Rotulo Sans |
RotuloSans-Variable.woff2, .ttf |
200 to 700 | Headings and interface |
Rotulo Sans |
RotuloSans-Medium.woff2, .ttf |
500, static and hinted | Renderers without variable fonts |
Rotulo Sans keeps the grammar of lines and arcs but trades the playful shapes for neutral ones: rounds are stadiums, capitals and ascenders share one height, descenders drop as far as ascenders rise above the x-height, side bearings are measured from each letter's profile so the gaps look even, and figures are tabular with a slashed zero.
Color details
The fonts are one color. Built with color_details=True, dots, accents, the zero slash and punctuation
move to a color layer (COLR/CPAL): the body takes the text color and the detail a palette color,
#3d8a8f by default and #7fb7b5 on dark backgrounds (base-palette: 1).
Reading forms
ss01 switches four letters to the forms of Lectura: l with a tail, q with a crossed tail, a curved
flag on 1 and a straight 9.
.labels {
font-feature-settings: 'ss01';
}
Map labels in MapLibre
MapLibre GL JS draws labels from signed distance field glyphs in protobuf, one file per range of 256
code points. The npm package ships them in glyphs/, one fontstack per weight of the variable font:
| Fontstack | Weight |
|---|---|
Rotulo Regular |
400 |
Rotulo Medium |
500 |
Rotulo SemiBold |
600 |
Rotulo Bold |
700 |
Only the ranges the font covers are built: 0-255 and 8192-8447. Serve the folder next to the app,
for example by copying node_modules/rotulo/glyphs into your public directory, and point the style at it:
const map = new maplibregl.Map({
container: 'map',
style: {
version: 8,
glyphs: '/glyphs/{fontstack}/{range}.pbf',
sources: {},
layers: [],
},
});
map.addLayer({
id: 'places',
type: 'symbol',
source: 'places',
layout: {
'text-field': ['get', 'name'],
'text-font': ['Rotulo Medium'],
},
});
Each fontstack holds one font: list a single name in text-font. Characters outside the covered
ranges, such as Cyrillic, are drawn with a local font instead (checked with MapLibre GL JS 6.15).
Using the fonts outside the web
| Where | How |
|---|---|
| GeoServer | Copy Rotulo-Display.ttf into the font directory and name Rotulo in the SLD font-family |
Embed Rotulo-Display.ttf or Rotulo-Lectura.ttf |
Parameters
Params holds every design decision, in units of a 1000 em:
| Field | Default | What it controls |
|---|---|---|
weight |
46 | Pen width |
x_height, cap_height |
425, 700 | Body and capital heights |
ascender, descender |
840, −415 | Shared by every letter with a tail; the descender matches the ascender's reach above the x-height |
sign_descender |
−180 | Depth of brackets, braces, parentheses, |, / and _ |
corner |
50 | Radius used to round every skeleton vertex |
gap |
110 | Space between a stroke and a floating detail |
spacing, word_spacing |
1.5, 1.0 | Side bearings and space width |
narrow_air |
0.3 | Extra room around narrow letters such as i, l, t |
from dataclasses import replace
from pathlib import Path
from rotulo import DISPLAY, build_font
print(build_font(replace(DISPLAY, weight=70), "Medium", 400, Path("build")))
SANS holds the Rotulo Sans cut; its letter shapes live in Sans (width, cap_width, aperture_e,
stadium, a_form, d_form, t_form, t_height, m_vertex, optical):
from rotulo import SANS, build_font
print(build_font(SANS, "Medium", 500, Path("build"), family="Rotulo Sans"))
Known limitations
- Latin script: Spanish, Portuguese, French and Catalan, figures and common symbols.
- Rotulo Sans draws its own letters and figures; punctuation, symbols and accents come from Rotulo.
- The variable font keeps overlapping strokes and is not hinted; use the static files at small sizes on Windows.
Development
python -m venv .venv && . .venv/bin/activate
pip install -e '.[dev]'
pytest
ruff check src tests && ruff format --check src tests
mypy
The glyphs come from static instances of the variable font, rendered with fontnik, which ships prebuilt binaries:
python -m rotulo --out build --map build/map
cd web && npm ci && npm run glyphs
The demo in demo/ is a static specimen: build the fonts into it with
python -m rotulo --out build --web demo/fonts && cp web/rotulo.css demo/ and serve the folder.
The tests build every font and check heights against the skeleton, kerning, the optional color layers, ss01,
hinting, that the variable font interpolates every glyph and that the map weights are static instances
with the same characters.
Contributing
Issues are welcome. Please open one before sending a pull request.
License
OFL-1.1 © GHEgar
Metadata
Release files for rotulo 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rotulo-0.5.0.tar.gz | 113.6 kB | With provenance | Details for rotulo-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rotulo-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for rotulo-0.5.0-py3-none-any.whl |
Total release size: 149.6 kB
Release files / rotulo-0.5.0.tar.gz
| Download URL | rotulo-0.5.0.tar.gz |
|---|---|
| Size | 113.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a85dc50ee06654ba938d7f04435c8d051f1358b3d88e207ac2d0da1ef6c1861d
|
|
BLAKE2b-256 checksum How to use checksums |
5212b09d0c29d008341889f840246fe4ce8ae89cda435533d949a3fa5e0720ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / rotulo-0.5.0-py3-none-any.whl
| Download URL | rotulo-0.5.0-py3-none-any.whl |
|---|---|
| Size | 36.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f28d6ff60f32077e06b3659b4ce32b2ba7f3031ffcec998e5cc4e3d782dc3c4
|
|
BLAKE2b-256 checksum How to use checksums |
6398f461ec089d4aa998865784cede3ffab3d445209806424156e361ed3ac6d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logSecurity for rotulo 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for rotulo-0.5.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.