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

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
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