~jaro/balkon

ref: 397a9e427f251005c29846c94299ef5d6467d352 balkon/src/Data/Text/ParagraphLayout/Internal/LineHeight.hs -rw-r--r-- 431 bytes
397a9e42Jaro Fix handling of mixed line height. 1 year, 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module Data.Text.ParagraphLayout.Internal.LineHeight (LineHeight (..))
where

import Data.Int (Int32)

-- | Determines the preferred line height of text in the resulting layout.
data LineHeight

    = Normal
    -- ^ Determine the preferred line height automatically using its ascent and
    -- descent metrics.

    | Absolute Int32
    -- ^ Set the preferred line height independently of the font.

    deriving (Eq, Read, Show)