Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- text :: Font -> String -> Shape
- data Font
- data FontAspect
- = Undefined
- | Regular
- | Bold
- | Italic
- | BoldItalic
- fontFromPath :: FilePath -> Double -> IO Font
- fontFromSystem :: String -> FontAspect -> Double -> IO Font
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
data FontAspect #
Instances
Enum FontAspect | |
Defined in OpenCascade.Font.FontAspect succ :: FontAspect -> FontAspect # pred :: FontAspect -> FontAspect # toEnum :: Int -> FontAspect # fromEnum :: FontAspect -> Int # enumFrom :: FontAspect -> [FontAspect] # enumFromThen :: FontAspect -> FontAspect -> [FontAspect] # enumFromTo :: FontAspect -> FontAspect -> [FontAspect] # enumFromThenTo :: FontAspect -> FontAspect -> FontAspect -> [FontAspect] # | |
Show FontAspect | |
Defined in OpenCascade.Font.FontAspect showsPrec :: Int -> FontAspect -> ShowS # show :: FontAspect -> String # showList :: [FontAspect] -> ShowS # |
fontFromSystem :: String -> FontAspect -> Double -> IO Font Source #
Create a font from a system font name, aspect, and size