summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/layout
AgeCommit message (Collapse)Author
2024-11-29Fix paragraph spacing in Rust 1.82+0.9Laurenz
2023-10-31CSL supportLaurenz
2023-10-30Fixed typos (#2524)Fritz Rehde
2023-10-29Remove duplicated lookupLaurenz
2023-10-28Simplify linebreakingLaurenz
Switches from an iterator to callback style, which significantly increases the clarity of the whole thing.
2023-10-28Bump ICU dataLaurenz
2023-10-28Fix justification with hanging indent and negative spacingLaurenz
Fixes #2419
2023-10-28Fix justified linebreaking without justifiablesLaurenz
2023-10-27Fix trailing mandatory breaks being swallowed (#2502)tingerrr
2023-10-25Fix pagebreak.to check (#2475)Francisco J. Sanchez
2023-10-22Support adjustment of more CJK punctuation (#2456)Wenzhuo Liu
2023-10-22Fix compiler panic for float with no vertical alignment (#2437)MALO
2023-10-22Don't hyphenate on no-break characters (#2396)Eric Biedert
2023-10-17Filter out prohibited line breaks in `par` (#2376)tingerrr
2023-10-17Automatically add spacing between CJK and Latin characters (#2334)Peng Guanwen
2023-10-10Fix clipping when a box/block has a `radius` (#2338)Sébastien d'Herbais de Thun
2023-10-09Adjust table inset behavior to the same as container's (#1979) (#2323)HydroH
2023-10-05Fix crashes with infinite lengths (part 2) (#2298)bluebear94
2023-10-03Gradient Part 2 - Linear gradients (#2279)Sébastien d'Herbais de Thun
2023-10-03Honor text’s fallback option for hyphenation (#2301)bluebear94
2023-09-28initial Romanian support (#2246)DVDTSB
2023-09-28Handle compiler panics when handling infinite lengths (#2215)bluebear94
2023-09-26Prevent block spacing with placed elements (#2244)Eric Biedert
2023-09-26Resolve spacing before comparing (#2235)Eric Biedert
2023-09-26Add `wide` spacing for math (#2224)DVDTSB
2023-09-25Add custom smart quotes (#2209)tingerrr
2023-09-25Fixing the styling issues of the empty pages caused by pagebreak (#2182)LU Jialin
2023-09-25feat: inital Hungarian language support (#2229)FlyinPancake
2023-09-19Correct the consecutive hyphen cost (#2190)Peng Guanwen
This just fixes a mistake previously made. `0.3` is the correct number that is proportional to the parameters in Knuth's paper. The previously choosed value `300` is due to my calculation mistake and is too large that essentially prevent any consecutive hyphens.
2023-09-18Fix duplicate state manipulationLaurenz
The flow layouts footnotes twice in some cases, which messed up the Vt's locator state. Typically, we use `thing.measure` instead of `thing.layout` to prevent side effects, but in this case it was simpler to just undo the modification. A future layout engine rewrite should try to make this kind of error harder to make. Fixes #1597
2023-09-14Fix invisibles on final page (#2141)Laurenz
2023-09-13Fix floating placement within containersLaurenz
Fixes #1879
2023-09-13Fix box in 100% width blockLaurenz
Fixes #2128
2023-09-13Add logical numbering support for PDF export (#1933)Kevin K
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2023-09-11First-class typesLaurenz
Makes types first-class values.
2023-09-06Interpret vertical page number alignment differentlyLaurenz
The vertical alignment of `number-align` now selects header or footer instead of aligning within the footer. This is a minor breaking change because - top behaves differently now - horizon is now forbidden - bottom (the new default) behaves differently, too Typical number-align usage will likely not use the vertical component at all, though. Fixes #645
2023-09-04Docs fixesLaurenz
Fixes #2059 Fixes #1946 Fixes #1936 Fixes #1862 Fixes #1820 Fixes #1383
2023-09-04Fix improper line wrapping in the presence of medial newlines (#2056)bluebear94
Fixes #2019.
2023-09-04Add a page setup guide (#1911)Martin Haug
2023-08-30Introduce second variant of Ignorant Behaviour and prevent weak page breaks ↵Beiri22
at basically empty pages (#1929)
2023-08-25Add Finnish translations (#1996)Kivi Kaitaniemi
2023-08-25calm down clippy even more (#1997)Beiri22
2023-08-23Render opening smart quote after another opening quote of a different type ↵bluebear94
(#1559)
2023-08-23linebreak_optimized: Handle breakpoints separated only by spaces (#1821)bluebear94
2023-08-08Penalize runts (#1858)Matt Fellenz
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