~jaro/balkon

ref: d1b417ef572d40cdb8dd7ad5fd83d9b62fdc48df balkon/src/Data/Text/ParagraphLayout/ResolvedSpan.hs -rw-r--r-- 460 bytes
d1b417efJaro Link to Span using a generic wrapper. 1 year, 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Data.Text.ParagraphLayout.ResolvedSpan (ResolvedSpan(..))
where

import Data.Text (Text)
import Data.Text.Glyphize (Font)

import Data.Text.ParagraphLayout.LineHeight

-- | Internal structure containing resolved values that may be shared with
-- other spans across the paragraph.
data ResolvedSpan = ResolvedSpan
    { spanText :: Text
    , spanFont :: Font
    , spanLineHeight :: LineHeight
    , spanLanguage :: String
    }
    deriving (Eq, Show)