typograffiti-0.1.0.3: Just let me draw nice text already

Copyright(c) 2018 Schell Scivally
LicenseMIT
MaintainerSchell Scivally <schell@takt.com>
Safe HaskellNone
LanguageHaskell2010

Typograffiti.Store

Description

A storage context an ops for rendering text with multiple fonts and sizes, hiding the details of the Atlas and WordCache.

Synopsis

Documentation

data RenderedText t m Source #

A pre-rendered bit of text, ready to display given some post compilition transformations. Also contains the text size.

Constructors

RenderedText 

Fields

data Font t Source #

Constructors

Font 

data TextRenderingData t Source #

Constructors

TextRenderingData 

Fields

newtype FontStore t Source #

Stored fonts at specific sizes.

Constructors

FontStore 

getTextRendering Source #

Arguments

:: (MonadIO m, MonadError TypograffitiError m, Layout t) 
=> FontStore t

The font store.

-> FilePath

The path to the font to use for rendering.

-> GlyphSize

The size of the font glyphs.

-> String

The string to render.

-> m (RenderedText t m)

The rendered text, ready to draw to the screen.