summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/layout
AgeCommit message (Collapse)Author
2024-11-29Fix paragraph spacing in Rust 1.82+0.7Laurenz
2023-08-07Touch up docsLaurenz
2023-08-03layout::par::finalize: Bound allotted width when fitting to width (#1828)bluebear94
Sometimes, optimized line breaking outputs lines that are wider than the allotted width so that spacing between words can be narrowed to fit. However, the width calculation for the fit-to-width case does not account for this, causing the resulting width to exceed the width of the region. This commit takes the minimum of the calculated width with the width of the region. Fixes #1825.
2023-07-19Resolve `place` deltas relative to real container sizeLaurenz
2023-07-19Positions placed elements relative to real container size (#1745)Laurenz
This positions placed elements relative to the real container size instead of relative to the base size of the region. This makes its usage more versatile. Fixes #82 Fixes #685 Fixes #1705
2023-07-19Support OpenType writing script (#1697)damaxwell
2023-07-11Add fields and methods to several primitives (#790)Pg Biel
2023-07-10Basic floating placementLaurenz
2023-07-06Add alternative smartquotes (#1631)T0mstone
2023-07-06Raw syntax definition loading (#1655)Sébastien d'Herbais de Thun
2023-07-06Add Japanese translation for LocalName (#1662)Shogo Takata
2023-07-06Make default margin behavior more precise (#1666)lolstork
2023-07-05Clarify docs: Weak spacings eat markup space (#1648)raphCode
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2023-07-02Move everything into `crates/` directoryLaurenz