Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- getFontDefault :: IO Font
- loadFont :: String -> WindowResources -> IO Font
- loadFontEx :: String -> Int -> [Int] -> Int -> WindowResources -> IO Font
- loadFontFromImage :: Image -> Color -> Int -> WindowResources -> IO Font
- loadFontFromMemory :: String -> [Integer] -> Int -> [Int] -> Int -> WindowResources -> IO Font
- loadFontData :: [Integer] -> Int -> [Int] -> Int -> FontType -> IO GlyphInfo
- genImageFontAtlas :: [GlyphInfo] -> [[Rectangle]] -> Int -> Int -> Int -> Int -> IO Image
- unloadFont :: Font -> WindowResources -> IO ()
- isFontReady :: Font -> IO Bool
- exportFontAsCode :: Font -> String -> IO Bool
- drawFPS :: Int -> Int -> IO ()
- drawText :: String -> Int -> Int -> Int -> Color -> IO ()
- drawTextEx :: Font -> String -> Vector2 -> Float -> Float -> Color -> IO ()
- drawTextPro :: Font -> String -> Vector2 -> Vector2 -> Float -> Float -> Float -> Color -> IO ()
- drawTextCodepoint :: Font -> Int -> Vector2 -> Float -> Color -> IO ()
- drawTextCodepoints :: Font -> [Int] -> Vector2 -> Float -> Float -> Color -> IO ()
- measureText :: String -> Int -> IO Int
- measureTextEx :: Font -> String -> Float -> Float -> IO Vector2
- getGlyphIndex :: Font -> Int -> IO Int
- getGlyphInfo :: Font -> Int -> IO GlyphInfo
- getGlyphAtlasRec :: Font -> Int -> IO Rectangle
- loadUTF8 :: [Integer] -> IO String
- loadCodepoints :: String -> IO [Int]
- getCodepointCount :: String -> IO Int
- getCodepointNext :: String -> IO (Int, Int)
- getCodepointPrevious :: String -> IO (Int, Int)
- codepointToUTF8 :: Int -> IO String
Documentation
getFontDefault :: IO Font Source #
loadFontEx :: String -> Int -> [Int] -> Int -> WindowResources -> IO Font Source #
loadFontFromImage :: Image -> Color -> Int -> WindowResources -> IO Font Source #
loadFontFromMemory :: String -> [Integer] -> Int -> [Int] -> Int -> WindowResources -> IO Font Source #
unloadFont :: Font -> WindowResources -> IO () Source #
Unloads a font from GPU memory (VRAM). Fonts are automatically unloaded
when closeWindow
is called, so manually unloading fonts is not required.
In larger projects, you may want to manually unload fonts to avoid having
them in VRAM for too long.