flaw-font-0.1.0.0

LicenseMIT
Safe HaskellNone
LanguageHaskell2010

Flaw.Graphics.Font.Render

Description

 
Synopsis

Documentation

data GlyphRenderer d Source #

Glyph renderer keeps resources needed to render glyphs on a graphics device.

data RenderableFont d Source #

Runtime data about particular font.

Constructors

RenderableFont 

Fields

type RenderGlyphsM c d = ReaderT (RenderGlyphsState c d) (Render c) Source #

renderGlyphs :: Context c d => GlyphRenderer d -> RenderableFontCache d -> RenderGlyphsM c d a -> Render c a Source #

Draw glyphs using font cache.

renderTextRun :: Vector ShapedGlyph -> Float2 -> Float4 -> RenderGlyphsM c d () Source #

Render raw glyphs.

renderTexts :: FontShaper s => s -> [(Text, Float4)] -> FontScript -> Float2 -> RenderTextCursorX -> RenderTextCursorY -> RenderGlyphsM c d () Source #

Shape multiple text runs and output it in RenderGlyphsM monad.