Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
Fragment | |
|
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 readsPrec :: Int -> ReadS LineHeight readList :: ReadS [LineHeight] readPrec :: ReadPrec LineHeight readListPrec :: ReadPrec [LineHeight] | |
Show LineHeight | |
Defined in Data.Text.ParagraphLayout.Internal.LineHeight showsPrec :: Int -> LineHeight -> ShowS show :: LineHeight -> String showList :: [LineHeight] -> ShowS | |
Eq LineHeight | |
Defined in Data.Text.ParagraphLayout.Internal.LineHeight (==) :: LineHeight -> LineHeight -> Bool (/=) :: LineHeight -> LineHeight -> Bool |
Paragraph Array Int [Span] ParagraphOptions |
data ParagraphLayout #
ParagraphLayout | |
|
Instances
Read ParagraphLayout | |
Defined in Data.Text.ParagraphLayout.Internal.Paragraph readsPrec :: Int -> ReadS ParagraphLayout readList :: ReadS [ParagraphLayout] readPrec :: ReadPrec ParagraphLayout readListPrec :: ReadPrec [ParagraphLayout] | |
Show ParagraphLayout | |
Defined in Data.Text.ParagraphLayout.Internal.Paragraph showsPrec :: Int -> ParagraphLayout -> ShowS show :: ParagraphLayout -> String showList :: [ParagraphLayout] -> ShowS | |
Eq ParagraphLayout | |
Defined in Data.Text.ParagraphLayout.Internal.Paragraph (==) :: ParagraphLayout -> ParagraphLayout -> Bool (/=) :: ParagraphLayout -> ParagraphLayout -> Bool |
data ParagraphOptions #
ParagraphOptions | |
|
Instances
Show ParagraphOptions | |
Defined in Data.Text.ParagraphLayout.Internal.Paragraph showsPrec :: Int -> ParagraphOptions -> ShowS show :: ParagraphOptions -> String showList :: [ParagraphOptions] -> ShowS | |
Eq ParagraphOptions | |
Defined in Data.Text.ParagraphLayout.Internal.Paragraph (==) :: ParagraphOptions -> ParagraphOptions -> Bool (/=) :: ParagraphOptions -> ParagraphOptions -> Bool |
Span | |
|
Instances
Read Span | |
Defined in Data.Text.ParagraphLayout.Internal.Span | |
Show Span | |
Eq Span | |
data SpanLayout #
Instances
Read SpanLayout | |
Defined in Data.Text.ParagraphLayout.Internal.Span readsPrec :: Int -> ReadS SpanLayout readList :: ReadS [SpanLayout] readPrec :: ReadPrec SpanLayout readListPrec :: ReadPrec [SpanLayout] | |
Show SpanLayout | |
Defined in Data.Text.ParagraphLayout.Internal.Span showsPrec :: Int -> SpanLayout -> ShowS show :: SpanLayout -> String showList :: [SpanLayout] -> ShowS | |
Eq SpanLayout | |
Defined in Data.Text.ParagraphLayout.Internal.Span (==) :: SpanLayout -> SpanLayout -> Bool (/=) :: SpanLayout -> SpanLayout -> Bool |
data SpanOptions #
SpanOptions | |
|
Instances
Read SpanOptions | |
Defined in Data.Text.ParagraphLayout.Internal.Span readsPrec :: Int -> ReadS SpanOptions readList :: ReadS [SpanOptions] readPrec :: ReadPrec SpanOptions readListPrec :: ReadPrec [SpanOptions] | |
Show SpanOptions | |
Defined in Data.Text.ParagraphLayout.Internal.Span showsPrec :: Int -> SpanOptions -> ShowS show :: SpanOptions -> String showList :: [SpanOptions] -> ShowS | |
Eq SpanOptions | |
Defined in Data.Text.ParagraphLayout.Internal.Span (==) :: SpanOptions -> SpanOptions -> Bool (/=) :: SpanOptions -> SpanOptions -> Bool |
layoutPlain :: Paragraph -> ParagraphLayout #