SVGFonts: Fonts from the SVG-Font format

[ bsd3, graphics, library ] [ Propose Tags ]

This 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 http://fontforge.sourceforge.net/ or use the included LinLibertine, Bitstream

Features

  • A powerful functional interface, demonstrated with an example (Fonts.hs)

  • The generated outlines can be transformed in various ways, i.e. elimination of holes for triangulation, representation with triangles, extrusion

  • Color textures that are stored as files (font cache). Foreground and background color can be freely chosen.

  • Everything is stored in a simple SceneGraph: http://hackage.haskell.org/package/collada-types

  • Complete implementation of the features that fontforge produces (but not the complete SVG format):

  • Kerning (i.e. the two characters in "VA" have a shorter distance than in "VV")

  • Unicode, Ligatures

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


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.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.3.0.1, 1.3.0.2, 1.4, 1.4.0.1, 1.4.0.2, 1.4.0.3, 1.5.0.0, 1.5.0.1, 1.6.0.0, 1.6.0.1, 1.6.0.2, 1.6.0.3, 1.7, 1.7.0.1, 1.8, 1.8.0.1
Dependencies array, attoparsec-text, base (>=4 && <5), bytestring (>=0.9.1 && <0.9.2), collada-output (>=0.6), collada-types (>=0.3), containers (>=0.4 && <0.5), directory (>=1.0 && <1.2), GLUT (>=2.1.2.1), haskell98, OpenGL (>=2.2.3.0), parsec (>=2.1 && <=3.2), split (>=0.1 && <0.2), SVGPath (==1.1), text, tga (>=0.2), triangulation (>=0.3), tuple, vector, xml (>=1.3 && <1.4) [details]
License BSD-3-Clause
Author Tillmann Vogt
Maintainer tillk.vogt@googlemail.com
Category Graphics
Uploaded by TillmannVogt at 2011-07-25T10:30:55Z
Distributions LTSHaskell:1.8.0.1, NixOS:1.8.0.1, Stackage:1.8.0.1
Reverse Dependencies 11 direct, 12 indirect [details]
Executables Fonts
Downloads 35677 total (142 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for SVGFonts-1.0

[back to package description]
SVGFonts

Usage:
  Convert your favourite font (i.e.  .ttf) into a .svg file with fontforge (the menu item under
  "Save All"). If a font converted on your own doesn't work, try the repair options, and if this still
  doens't work edit the file by hand or tell me.
  Remember that a lot of fonts are not allowed to be distributed freely.

Example:
  src/Test/Font.hs generates a Collada file that can be read with tools like blender.
  Textures currently don't work with blenders new native collada import.
  But one can see them in Scenixviewer from nvidia.
  The data that is passed to genCollada is represented with a data type that I use for all my libraries
  to allow easy combination.