Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Data.Text.ParagraphLayout
Description
Positions and distances are represented as 32-bit integers. Their unit must
be defined by the caller, who must calculate the desired dimensions of the
EM square of the input font and set them using
optionScale
.
For example, if 1em = 20px
, if the output pixels are square, and if the
output coordinates are in 1/64ths of a pixel, you should set the scale to
.Just
(1280, 1280)
X coordinates increase from left to right.
Y coordinates increase from bottom to top.
Documentation
Constructors
Fragment | |
Fields
|
Instances
Read Fragment | |
Defined in Data.Text.ParagraphLayout.Internal.Fragment | |
Show Fragment | |
Eq Fragment | |
data LineHeight #
Instances
Read LineHeight | |
Defined in Data.Text.ParagraphLayout.Internal.LineHeight Methods readsPrec :: Int -> ReadS LineHeight readList :: ReadS [LineHeight] readPrec :: ReadPrec LineHeight readListPrec :: ReadPrec [LineHeight] | |
Show LineHeight | |
Defined in Data.Text.ParagraphLayout.Internal.LineHeight Methods showsPrec :: Int -> LineHeight -> ShowS show :: LineHeight -> String showList :: [LineHeight] -> ShowS | |
Eq LineHeight | |
Constructors
Paragraph Array Int [Span] ParagraphOptions |
data ParagraphLayout #
Constructors
ParagraphLayout | |
Fields
|
Instances
Read ParagraphLayout | |
Defined in Data.Text.ParagraphLayout.Internal.ParagraphLayout Methods readsPrec :: Int -> ReadS ParagraphLayout readList :: ReadS [ParagraphLayout] readPrec :: ReadPrec ParagraphLayout readListPrec :: ReadPrec [ParagraphLayout] | |
Show ParagraphLayout | |
Defined in Data.Text.ParagraphLayout.Internal.ParagraphLayout Methods showsPrec :: Int -> ParagraphLayout -> ShowS show :: ParagraphLayout -> String showList :: [ParagraphLayout] -> ShowS | |
Eq ParagraphLayout | |
Defined in Data.Text.ParagraphLayout.Internal.ParagraphLayout Methods (==) :: ParagraphLayout -> ParagraphLayout -> Bool (/=) :: ParagraphLayout -> ParagraphLayout -> Bool |
data ParagraphOptions #
Constructors
ParagraphOptions | |
Fields
|
Instances
Show ParagraphOptions | |
Defined in Data.Text.ParagraphLayout.Internal.Paragraph Methods showsPrec :: Int -> ParagraphOptions -> ShowS show :: ParagraphOptions -> String showList :: [ParagraphOptions] -> ShowS | |
Eq ParagraphOptions | |
Defined in Data.Text.ParagraphLayout.Internal.Paragraph Methods (==) :: ParagraphOptions -> ParagraphOptions -> Bool (/=) :: ParagraphOptions -> ParagraphOptions -> Bool |
Constructors
Span | |
Fields
|
Instances
Read Span | |
Defined in Data.Text.ParagraphLayout.Internal.Span | |
Show Span | |
Eq Span | |
data SpanLayout #
Constructors
SpanLayout [Fragment] |
Instances
Read SpanLayout | |
Defined in Data.Text.ParagraphLayout.Internal.Span Methods readsPrec :: Int -> ReadS SpanLayout readList :: ReadS [SpanLayout] readPrec :: ReadPrec SpanLayout readListPrec :: ReadPrec [SpanLayout] | |
Show SpanLayout | |
Defined in Data.Text.ParagraphLayout.Internal.Span Methods showsPrec :: Int -> SpanLayout -> ShowS show :: SpanLayout -> String showList :: [SpanLayout] -> ShowS | |
Eq SpanLayout | |
Defined in Data.Text.ParagraphLayout.Internal.Span |
data SpanOptions #
Constructors
SpanOptions | |
Fields
|
Instances
Read SpanOptions | |
Defined in Data.Text.ParagraphLayout.Internal.Span Methods readsPrec :: Int -> ReadS SpanOptions readList :: ReadS [SpanOptions] readPrec :: ReadPrec SpanOptions readListPrec :: ReadPrec [SpanOptions] | |
Show SpanOptions | |
Defined in Data.Text.ParagraphLayout.Internal.Span Methods showsPrec :: Int -> SpanOptions -> ShowS show :: SpanOptions -> String showList :: [SpanOptions] -> ShowS | |
Eq SpanOptions | |
Defined in Data.Text.ParagraphLayout.Internal.Span |
layoutPlain :: Paragraph -> ParagraphLayout #