~jaro/balkon

ref: f389fa5a8b81f95f28500b723792d9803bf9b6aa balkon/src/Data/Text/ParagraphLayout/ResolvedSpan.hs -rw-r--r-- 460 bytes
f389fa5aJaro Implement absolute line heights with half-leadings. 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)