Safe Haskell | None |
---|---|
Language | Haskell2010 |
A set of fonts to query, or resulting from a query.
Synopsis
- type FontSet = [Pattern]
- validFontSet :: FontSet -> Bool
- fontSetList :: Config -> [FontSet] -> Pattern -> ObjectSet -> FontSet
- fontSetMatch :: Config -> [FontSet] -> Pattern -> Maybe FontSet
- fontSetSort :: Config -> [FontSet] -> Pattern -> Bool -> (Maybe FontSet, CharSet')
- data FontFaceParser a = FontFaceParser {}
- emptyParser :: a -> FontFaceParser a
Documentation
type FontSet = [Pattern] Source #
holds a list of patterns; these are used to return the results of listing available fonts.
validFontSet :: FontSet -> Bool Source #
Can the FontSet be processed by FontConfig?
fontSetList :: Config -> [FontSet] -> Pattern -> ObjectSet -> FontSet Source #
holds a list of patterns; these are used to return the results of listing available fonts. If the fontset is invalid,
fontSetMatch :: Config -> [FontSet] -> Pattern -> Maybe FontSet Source #
Finds the font in sets most closely matching pattern and returns the result
of fontRenderPrepare
for that font and the provided pattern.
fontSetSort :: Config -> [FontSet] -> Pattern -> Bool -> (Maybe FontSet, CharSet') Source #
Returns the list of fonts from sets sorted by closeness to pattern. If True is passed, elements in the list which don't include Unicode coverage not provided by earlier elements in the list are elided. The union of Unicode coverage of all of the fonts is returned alongside the fontset.
data FontFaceParser a Source #
StyleSheet
wrapper to parse @font-face rules.
Instances
StyleSheet a => StyleSheet (FontFaceParser a) Source # | |
Defined in Graphics.Text.Font.Choose.FontSet setPriority :: Int -> FontFaceParser a -> FontFaceParser a # setPriorities :: [Int] -> FontFaceParser a -> FontFaceParser a # addRule :: FontFaceParser a -> StyleRule -> FontFaceParser a # addAtRule :: FontFaceParser a -> Text -> [Token] -> (FontFaceParser a, [Token]) # |
emptyParser :: a -> FontFaceParser a Source #