curves-1.1.0.1: Library for drawing curve based images.

Safe HaskellNone

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 SVGFontSource

Read a font from an SVG file.

drawString :: SVGFont -> String -> ImageSource

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