Safe Haskell | None |
---|---|
Language | Haskell2010 |
FreeType.FontConfig
Synopsis
- ftCharIndex :: FT_Face -> Char -> Word
- ftCharSet :: FT_Face -> CharSet
- ftCharSetAndSpacing :: FT_Face -> (CharSet, Spacing)
- ftQuery :: FilePath -> Int -> IO (Pattern, Int)
- ftQueryAll :: FilePath -> Int -> IO (FontSet, Int)
- ftQueryFace :: FT_Face -> FilePath -> Int -> IO Pattern
Documentation
ftCharIndex :: FT_Face -> Char -> Word Source #
Maps a Unicode char to a glyph index. This function uses information from several possible underlying encoding tables to work around broken fonts. As a result, this function isn't designed to be used in performance sensitive areas; results from this function are intended to be cached by higher level functions.
ftCharSet :: FT_Face -> CharSet Source #
Scans a FreeType face and returns the set of encoded Unicode chars.
ftCharSetAndSpacing :: FT_Face -> (CharSet, Spacing) Source #
ftQuery :: FilePath -> Int -> IO (Pattern, Int) Source #
Constructs a pattern representing the id
th face in fst
.
The number of faces in file
is returned in snd
.
ftQueryAll :: FilePath -> Int -> IO (FontSet, Int) Source #
Constructs patterns found in filename
.
If id is -1, then all patterns found in filename
are added to fst
.
Otherwise, this function works exactly like ftQuery
.
The number of faces in filename
is returned in snd
.
ftQueryFace :: FT_Face -> FilePath -> Int -> IO Pattern Source #
Constructs a pattern representing face
.
filename
and id
are used solely as data for pattern elements.