Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
print_stderr :: Bool -> Sh a -> Sh ashelly Shelly Create a sub-Sh with stderr printing on or off Defaults to True.
print_stdout :: Bool -> Sh a -> Sh ashelly Shelly Create a sub-Sh with stdout printing on or off Defaults to True.
print_commands :: MonadShControl m => Bool -> m a -> m ashelly Shelly.Lifted No documentation available.
print_commands_with :: MonadShControl m => (Text -> IO ()) -> m a -> m ashelly Shelly.Lifted No documentation available.
print_stderr :: MonadShControl m => Bool -> m a -> m ashelly Shelly.Lifted No documentation available.
print_stdout :: MonadShControl m => Bool -> m a -> m ashelly Shelly.Lifted No documentation available.
print_commands :: Bool -> Sh a -> Sh ashelly Shelly.Pipe see 'S.print_commands
print_stdout :: Bool -> Sh a -> Sh ashelly Shelly.Pipe see print_stdout
printf :: MonadIO io => Format (io ()) r -> rturtle Turtle.Format Print a Format string to standard output (without a trailing newline)
>>> printf ("Hello, "%s%"!\n") "world" Hello, world!
printTextAt :: Font -> PointSize -> Point -> String -> Drawing px ()Rasterific Graphics.Rasterific Draw a string at a given position. Text printing imply loading a font, there is no default font (yet). Below an example of font rendering using a font installed on Microsoft Windows.
import Graphics.Text.TrueType( loadFontFile ) import Codec.Picture( PixelRGBA8( .. ), writePng ) import Graphics.Rasterific import Graphics.Rasterific.Texture main :: IO () main = do fontErr <- loadFontFile "test_fonts/DejaVuSans.ttf" case fontErr of Left err -> putStrLn err Right font -> writePng "text_example.png" . renderDrawing 300 70 (PixelRGBA8 255 255 255 255) . withTexture (uniformTexture $ PixelRGBA8 0 0 0 255) $ printTextAt font (PointSize 12) (V2 20 40) "A simple text test!"
You can use any texture, like a gradient while rendering text.