waterfall-cad-0.2.2.0: Declarative CAD/Solid Modeling Library
Safe HaskellNone
LanguageHaskell2010

Waterfall.TwoD.Text

Synopsis

Documentation

text :: Font -> String -> Shape Source #

Render text, using the font from the provided filepath, at a given size.

The IO of actually loading the font/checking the file exists is defered until the Shape is actually used

fontFromPath :: FilePath -> Double -> IO Font Source #

create a font from a filepath and a font size

fontFromSystem :: String -> FontAspect -> Double -> IO Font Source #

Create a font from a system font name, aspect, and size