h-raylib-5.5.1.0: Raylib bindings for Haskell
Safe HaskellNone
LanguageHaskell2010

Raylib.Core.Text

Description

Bindings to rtext

Synopsis

High level

loadFont :: String -> IO Font Source #

loadFontEx :: String -> Int -> Maybe [Int] -> IO Font Source #

loadFontFromMemory :: String -> [Integer] -> Int -> Maybe [Int] -> IO Font Source #

loadFontData :: [Integer] -> Int -> Maybe [Int] -> FontType -> IO GlyphInfo Source #

unloadFont :: Font -> WindowResources -> IO () Source #

Unloads a managed font from GPU memory (VRAM)

isFontReady :: Font -> IO Bool Source #

exportFontAsCode :: Font -> String -> IO Bool Source #

drawFPS :: Int -> Int -> IO () Source #

drawText :: String -> Int -> Int -> Int -> Color -> IO () Source #

drawTextEx :: Font -> String -> Vector2 -> Float -> Float -> Color -> IO () Source #

drawTextPro :: Font -> String -> Vector2 -> Vector2 -> Float -> Float -> Float -> Color -> IO () Source #

drawTextCodepoint :: Font -> Int -> Vector2 -> Float -> Color -> IO () Source #

drawTextCodepoints :: Font -> [Int] -> Vector2 -> Float -> Float -> Color -> IO () Source #

measureText :: String -> Int -> IO Int Source #

measureTextEx :: Font -> String -> Float -> Float -> IO Vector2 Source #

loadUTF8 :: [Integer] -> IO String Source #

loadCodepoints :: String -> IO [Int] Source #

getCodepointCount :: String -> IO Int Source #

getCodepointNext :: String -> IO (Int, Int) Source #

getCodepointPrevious :: String -> IO (Int, Int) Source #

codepointToUTF8 :: Int -> IO String Source #

Native

c'loadFont :: CString -> IO (Ptr Font) Source #

c'loadFontEx :: CString -> CInt -> Ptr CInt -> CInt -> IO (Ptr Font) Source #

c'loadFontFromMemory :: CString -> Ptr CUChar -> CInt -> CInt -> Ptr CInt -> CInt -> IO (Ptr Font) Source #

c'loadFontData :: Ptr CUChar -> CInt -> CInt -> Ptr CInt -> CInt -> CInt -> IO (Ptr GlyphInfo) Source #

c'genImageFontAtlas :: Ptr GlyphInfo -> Ptr (Ptr Rectangle) -> CInt -> CInt -> CInt -> CInt -> IO (Ptr Image) Source #

c'unloadFontData :: Ptr GlyphInfo -> CInt -> IO () Source #

c'isFontReady :: Ptr Font -> IO CBool Source #

c'exportFontAsCode :: Ptr Font -> CString -> IO CBool Source #

c'drawFPS :: CInt -> CInt -> IO () Source #

c'drawText :: CString -> CInt -> CInt -> CInt -> Ptr Color -> IO () Source #

c'drawTextEx :: Ptr Font -> CString -> Ptr Vector2 -> CFloat -> CFloat -> Ptr Color -> IO () Source #

c'drawTextPro :: Ptr Font -> CString -> Ptr Vector2 -> Ptr Vector2 -> CFloat -> CFloat -> CFloat -> Ptr Color -> IO () Source #

c'drawTextCodepoint :: Ptr Font -> CInt -> Ptr Vector2 -> CFloat -> Ptr Color -> IO () Source #

c'drawTextCodepoints :: Ptr Font -> Ptr CInt -> CInt -> Ptr Vector2 -> CFloat -> CFloat -> Ptr Color -> IO () Source #

c'setTextLineSpacing :: CInt -> IO () Source #

c'measureText :: CString -> CInt -> IO CInt Source #

c'measureTextEx :: Ptr Font -> CString -> CFloat -> CFloat -> IO (Ptr Vector2) Source #

c'getGlyphIndex :: Ptr Font -> CInt -> IO CInt Source #

c'loadUTF8 :: Ptr CInt -> CInt -> IO CString Source #

c'loadCodepoints :: CString -> Ptr CInt -> IO (Ptr CInt) Source #

c'getCodepointCount :: CString -> IO CInt Source #

c'getCodepointNext :: CString -> Ptr CInt -> IO CInt Source #

c'getCodepointPrevious :: CString -> Ptr CInt -> IO CInt Source #

c'codepointToUTF8 :: CInt -> Ptr CInt -> IO CString Source #