curves-1.1.0.2: Library for drawing curve based images.

Safe HaskellNone
LanguageHaskell98

Graphics.Curves.SVG.Font

Description

This module contains functions to render text using fonts specified in the SVG format.

Synopsis

Documentation

data SVGFont Source

Contains all the data necessary to render text.

loadFont :: FilePath -> IO SVGFont Source

Read a font from an SVG file.

drawString :: SVGFont -> String -> Image Source

Render a string in the given font. The text starts at the origin and is scaled to make upper case letters 1 unit high.