wumpus-basic-0.9.0: Common drawing utilities built on wumpus-core.

PortabilityGHC
Stabilityhighly unstable
MaintainerStephen Tetley <stephen.tetley@gmail.com>

Wumpus.Basic.Text.LRText

Description

LRText monad - left-to-right text, with kerning.

Note - because Wumpus has no access to the metrics data inside a font file, the default spacing is not good and it is expected that kerning will need to be added per-letter for variable width fonts.

This module makes precise horizontal text spacing *possible*, it does not make it *easy*.

Documentation

data LRText u a Source

Instances

runLRText :: (Num u, FromPtSize u) => LRText u a -> LocImage u aSource

kern :: Num u => u -> LRText u ()Source

char :: Num u => Char -> LRText u ()Source

symb :: Num u => Char -> LRText u ()Source