nanovg-0.1.0.1: Haskell bindings for nanovg

Safe HaskellNone
LanguageHaskell2010

NanoVG

Synopsis

Documentation

textBreakLines :: Context -> Text -> CFloat -> CInt -> (TextRow -> CInt -> IO ()) -> IO () Source

High level wrapper around NanoVG.Internal.textBreakLines This uses the fonts for width calculations so make sure you have them setup properly

textGlyphPositions :: Context -> CFloat -> CFloat -> Ptr CChar -> Ptr CChar -> CInt -> IO (Vector GlyphPosition) Source

High level wrapper around NanoVG.Internal.textGlyphPositions Might be changed to return a vector in the future

text :: Context -> CFloat -> CFloat -> Text -> IO () Source