wumpus-basic-0.8.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 text spacing *possible* - it does not make it *easy*.

Documentation

data TextM u a Source

Instances

runTextM :: (Num u, FromPtSize u, DrawingCtxM m, u ~ MonUnit m) => TextM u a -> m (a, LocGraphic u)Source

execTextM :: (Num u, FromPtSize u, DrawingCtxM m, u ~ MonUnit m) => TextM u a -> m (LocGraphic u)Source

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

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

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

symbi :: Num u => Int -> TextM u ()Source