wumpus-drawing-0.4.0: High-level drawing objects built on Wumpus-Basic.

PortabilityGHC
Stabilityunstable
Maintainerstephen.tetley@gmail.com

Wumpus.Drawing.Text.Base.Common

Description

Helpers for working with measured / advance text.

Synopsis

Documentation

advtext :: InterpretUnit u => EscapedText -> LocImage u (Vec2 u)Source

Single line text, returning its advance vector.

textOrientationZero :: (DrawingCtxM m, InterpretUnit u) => EscapedText -> m (Orientation u)Source

Build the Orientation of a single line of EscapedText.

The locus of the Orientation is baseline left - margins are added.

charOrientationZero :: (DrawingCtxM m, InterpretUnit u) => EscapedChar -> m (Orientation u)Source

Build the Orientation of an EscapedChar.

The locus of the Orientation is baseline left - margins are added.

hkernVector :: (DrawingCtxM m, InterpretUnit u) => [KernChar u] -> m (AdvanceVec u)Source

hkernVector : [kerning_char] -> AdvanceVec

hkernvector takes whatever length is paired with the EscapedChar for the init of the the list, for the last element it takes the charVector.