Portability | GHC |
---|---|
Stability | unstable |
Maintainer | stephen.tetley@gmail.com |
Helpers for working with measured / advance text.
- posTextWithMargins :: (Fractional u, InterpretUnit u) => PosObject u -> RectAddress -> LocImage u (BoundingBox u)
- advtext :: InterpretUnit u => EscapedText -> LocImage u (Vec2 u)
- textVector :: (DrawingCtxM m, InterpretUnit u) => EscapedText -> m (AdvanceVec u)
- textOrientationZero :: (DrawingCtxM m, InterpretUnit u) => EscapedText -> m (Orientation u)
- charVector :: (DrawingCtxM m, InterpretUnit u) => EscapedChar -> m (AdvanceVec u)
- charOrientationZero :: (DrawingCtxM m, InterpretUnit u) => EscapedChar -> m (Orientation u)
- hkernVector :: (DrawingCtxM m, InterpretUnit u) => [KernChar u] -> m (AdvanceVec u)
- hkernOrientationZero :: (DrawingCtxM m, InterpretUnit u) => [KernChar u] -> m (Orientation u)
Documentation
posTextWithMargins :: (Fractional u, InterpretUnit u) => PosObject u -> RectAddress -> LocImage u (BoundingBox u)Source
advtext :: InterpretUnit u => EscapedText -> LocImage u (Vec2 u)Source
Single line text, returning its advance vector.
textVector :: (DrawingCtxM m, InterpretUnit u) => EscapedText -> m (AdvanceVec u)Source
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.
charVector :: (DrawingCtxM m, InterpretUnit u) => EscapedChar -> m (AdvanceVec u)Source
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.
hkernOrientationZero :: (DrawingCtxM m, InterpretUnit u) => [KernChar u] -> m (Orientation u)Source