curves-1.1.0.1: Library for drawing curve based images.

Safe HaskellNone

Graphics.Curves.Text

Description

Simple (ugly) hand-crafted text. See Graphics.Curves.SVG.Font for prettier text.

Synopsis

Documentation

stringImage :: String -> ImageSource

Equivalent to stringImage' LeftAlign 0.2.

stringImage' :: Alignment -> Scalar -> String -> ImageSource

Draw a string at the origin with the given text alignment. The second argument specifies the spacing between characters. Upper-case letters are 2 units high.

label :: Point -> Scalar -> String -> ImageSource

Draw a string centered at a given point. The second argument specifies the font height in pixels, invariant under scaling.