~jaro/balkon

ref: b89500d0ec4226e51326a27f37ac0aa903362ec7 balkon/src/Data/Text/ParagraphLayout/ResolvedSpan.hs -rw-r--r-- 460 bytes
b89500d0Jaro Calculate fragment position continuously. 1 year, 7 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)