The SVGFonts package

[Tags: bsd3, library]

Native font support for the diagrams framework ( Note that this package can be used with any diagrams backend, not just the SVG backend. The SVG-font format is easy to parse and was therefore chosen for a font library completely written in Haskell.

You can convert your own font to SVG with, or use the included LinLibertine and Bitstream fonts.


XML speed issues can be solved by trimming the svg file to only those characters that are used (or maybe binary xml one day).

Version 1.0 of this library supports texturing, though this only makes sense in a diagrams backend that does rasterization in Haskell, such as diagrams-rasterific.


  # LANGUAGE NoMonomorphismRestriction #

 import Diagrams.Prelude
 import Diagrams.Backend.Rasterific.CmdLine
 import Graphics.SVGFonts

 main = defaultMain (text' "Hello World")

 text'   t = stroke (textSVG t 1) # fc purple # fillRule EvenOdd
 text''  t = stroke (textSVG' (TextOpts lin INSIDE_H KERN False 1 1) t) # fillRule EvenOdd
 text''' t =        (textSVG_ (TextOpts lin INSIDE_H KERN True  1 1) t) # fillRule EvenOdd


Versions0.1, 0.2, 0.3, 0.4, 1.0, 1.1, 1.1.1, 1.1.2, 1.2, 1.2.1, 1.3,,, 1.4,,,,
Dependenciesattoparsec, base (==4.*), blaze-markup (>=0.5), blaze-svg (>=0.3.3), containers (>=0.4 && <0.6), data-default-class (<0.1), diagrams-core (==1.3.*), diagrams-lib (==1.3.*), directory (>=1.1), parsec, split, text, tuple, vector, xml
AuthorTillmann Vogt
Source repositoryhead: git clone
UploadedSun Apr 19 18:35:49 UTC 2015 by BrentYorgey
DistributionsLTSHaskell:, NixOS:
Downloads4975 total (323 in last 30 days)
StatusDocs available [build log]
Last success reported on 2015-04-19 [all 1 reports]




Maintainers' corner

For package maintainers and hackage trustees