Data.Config.Font
data Config Source #
Constructors
Fields
Defined in Data.Config.Font
Methods
parseJSON :: Value -> Parser Config #
parseJSONList :: Value -> Parser [Config] #
config :: Lens' Config Config Source #
_color :: Lens' Config (V4 Word8) Source #
_descriptor :: Lens' Config FontDescriptor Source #
_size :: Lens' Config Int Source #
class HasConfig c where Source #
Minimal complete definition
config
config :: Lens' c Config Source #
_color :: Lens' c (V4 Word8) Source #
_descriptor :: Lens' c FontDescriptor Source #
_size :: Lens' c Int Source #
loadFontFrom :: Config -> MiniLight Font Source #
Load a system font from Config type.
Config
textFrom :: Config -> Text -> MiniLight Figure Source #
Create a text texture from the config. **NB** This function is a slow operation since it loads the font data every time.