From c8dc523fc21e0bcc78033b834cc99bfcc213df11 Mon Sep 17 00:00:00 2001 From: wiz Date: Wed, 20 Jan 2016 11:39:41 +0000 Subject: Import Hasklig-0.9 as fonts/Hasklig. 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. Some Haskellers have resorted to Unicode symbols, which are valid in the ghc. However they are one-character-wide and therefore eye-strainingly small. Furthermore, when displayed as substitutes to the underlying multi-character representation, as vim2hs does, the characters go out of alignment. 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. --- fonts/Hasklig/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 fonts/Hasklig/Makefile (limited to 'fonts/Hasklig/Makefile') diff --git a/fonts/Hasklig/Makefile b/fonts/Hasklig/Makefile new file mode 100644 index 00000000000..a3122c43e03 --- /dev/null +++ b/fonts/Hasklig/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1 2016/01/20 11:39:41 wiz Exp $ + +DISTNAME= Hasklig-0.9 +CATEGORIES= fonts +MASTER_SITES= ${MASTER_SITE_GITHUB:=i-tu/} +GITHUB_RELEASE= ${DISTNAME:S/Hasklig-//} +EXTRACT_SUFX= .zip + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/i-tu/Hasklig/ +COMMENT= Code font with monospaced ligatures +LICENSE= ofl-v1.1 + +USE_LANGUAGES= # none +NO_BUILD= yes +WRKSRC= ${WRKDIR} +FONTS_DIRS.ttf= ${PREFIX}/share/fonts/X11/OTF +INSTALLATION_DIRS= share/fonts/X11/OTF + +do-install: + ${INSTALL_DATA} ${WRKSRC}/*.otf ${DESTDIR}${FONTS_DIRS.ttf} + +.include "../../mk/bsd.pkg.mk" -- cgit v1.2.3