Programming languages are limited to relatively few characters. As a result, combined character operators surfaced quite early, such as the widely used arrow (->), comprised of a hyphen and greater sign. It looks like an arrow if you know the analogy and squint a bit. Composite glyphs are problematic in languages such as Haskell which utilize these complicated operators (=> -< >>= etc.) extensively. The readability of such complex code improves with pretty printing. Academic articles featuring Haskell code often use lhs2tex to achieve an appealing rendering, but it is of no use when programming. Hasklig solves the problem the way typographers have always solved ill-fitting characters which co-occur often, ligatures. The underlying code stays the same, only the representation changes. Not only can multi-character glyphs be rendered more vividly, other problematic things in monospaced fonts, such as spacing can be corrected.

Features

  • Multi-character glyphs are rendered more vividly
  • Problematic things in monospaced fonts, such as spacing can be corrected
  • Several currently implemented symbols
  • Some SVG glyphs are inserted into the fonts using Python FontTools
  • To build the binary font files from source, you need to have installed the Adobe Font Development Kit for OpenType (AFDKO)
  • For convenience, a shell script named build is provided in the root directory to build all OTFs and TTFs

Project Samples

Project Activity

See All Activity >

Categories

Fonts

License

Open Font License 1.1 (OFL 1.1)

Follow Hasklig

Hasklig Web Site

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Hasklig!

Additional Project Details

Operating Systems

Windows

Programming Language

Python

Related Categories

Python Fonts

Registered

2021-10-27