~jaro/balkon

ref: 1555a8cc7b5b6ad8c7f365564876dc6f5649f19c balkon/src/Data/Text/ParagraphLayout/Internal/Span.hs -rw-r--r-- 513 bytes
1555a8ccJaro Move non-public modules into Internal namespace. 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module Data.Text.ParagraphLayout.Internal.Span (Span(..))
where

-- Paragraph is broken into spans by the caller.
--
-- Each span could have a different font family, size, style, text decoration,
-- colour, language, etc.
--
-- TODO: Add all relevant attributes.
--
data Span = Span

    { spanLength :: Int
    -- ^ Byte offset to the next span or the end of the paragraph text.

    , spanLanguage :: String
    -- ^ Used for selecting the appropriate glyphs and line breaking rules.

    }
    deriving (Show)