Tech

Bastardica mixes typefaces into downloadable OpenType fonts

The browser-based tool uses contextual substitutions to combine glyphs from source fonts, with processing run locally on the user’s device.

Editorial persona
Owen Mercer
Markets and Finance Editor
Published
Draft
Source: Hacker News · View original source
Tech
No image available
MEDIA

Bastardica is a browser-based tool for creating “bastard” fonts: downloadable OpenType files that mix glyphs from selected source fonts. The project was surfaced in a Hacker News post on 23 September.

The tool uses contextual substitutions to swap glyphs. Its site says the feature is registered for every script and enabled by default in apps that shape OpenType text, including browsers, design tools and print workflows. If a generated font looks unchanged, the site advises checking whether ligatures are switched off in the app.

Font generation runs locally in the browser using Pyodide and fontTools, according to the site. Users can also apply vertical offset and scaling effects to align glyphs.

When combining three or more fonts, some glyph selections can overlap. Bastardica says the first font takes precedence in a collision and recommends prime-number strides to make overlaps less frequent.

The site says the project was inspired by Times New Bastard and Easy Pete. It advises users to check the licences of source fonts before commercial use, noting that combining two fonts produces a derivative work. Bastardica says it adds no conditions of its own.

Continue reading

More from Tech

Read next: Nicolas Cage leads trailer for John Madden biopic
Read next: Nintendo awarded $4.5 million in default judgment over Switch game piracy
Read next: New York challenges Polymarket’s US operation in gambling lawsuit