summaryrefslogtreecommitdiff
path: root/src/layout/par.rs
AgeCommit message (Collapse)Author
2021-03-30BiDi reordering 🔃Laurenz
Co-Authored-By: Martin <mhaug@live.de>
2021-03-30Fix space/newline trimming 🐞Laurenz
Co-Authored-By: Martin <mhaug@live.de>
2021-03-30Fix double leading 🐞Laurenz
2021-03-29Fixed par layouter directions 🗜Laurenz
2021-03-29Line break iterating run shaper 🌵Laurenz
Co-Authored-By: Martin <mhaug@live.de>
2021-03-29Write spaces and linebreaks into text runs ✒Laurenz
2021-03-27Better space coalescing logic 🌧Laurenz
This creates a smaller state machine helper type for softness coalescing, which does not own the resulting nodes. While this creates a bit more duplication in stack and par builder, it makes it a lot easier to integrate additional logic into the paragraph builder. Furthermore: - Line breaks are now "hard", that is, not coalesced with each other. - Text nodes with equal style are now merged allowing for example `f{}i` to form a ligature.
2021-03-25Refactor alignments & directions 📐Laurenz
- Adds lang function - Refactors execution context - Adds StackChild and ParChild enums
2021-03-20Square, circle and ellipse 🔵Laurenz
2021-03-19Scheduled maintenance 🔨Laurenz
- New naming scheme - TextNode instead of NodeText - CallExpr instead of ExprCall - ... - Less glob imports - Removes Value::Args variant - Removes prelude - Renames Layouted to Fragment - Moves font into env - Moves shaping into layout - Moves frame into separate module
2021-03-12Rename ChildAlign to LayoutAligns ✏Laurenz
2021-03-11Better expansion behaviour 🐪Laurenz
This makes expansion behaviour inheritable by placing it into the area and passing it down during layouting instead of computing some approximation of what we want during execution.
2021-03-10Better line spacing calculations ↕Laurenz
- Only add line spacing between lines. Previously, line spacing was added below every line, making `#box[word]` higher than just `word`. - Compute box height of text as `ascender - descender` so that the full word is contained in the box.
2021-03-09Rename run to line and add some explanatory comments ✏Laurenz
The name run was a relict of the time where a line consisted of a set of runs with same alignment. While these runs still exist conceptually, they are all stored flatly together in what was now renamed from `run` to `line`.
2021-01-20If expressions 🔀Laurenz
2021-01-13Unbounded pages 🌌Laurenz
2021-01-04Better value representations, type function 🌐Laurenz
2021-01-03Move and rename many things 🚛Laurenz
2020-10-13BoxAlign and Flow aliases ✏Laurenz
2020-10-13Rename geometric eval and apply to resolve ✏Laurenz
2020-10-12Naming and grammar ✔Laurenz
2020-10-12Less vecs in layouting ⚡Laurenz
2020-10-12Synchronous layout 🪀Laurenz
2020-10-11Evaluation benchmark 🔋Laurenz
2020-10-11Refactor paragraph layout 📰Laurenz
2020-10-11Rename LayoutItem to Layouted ✏Laurenz
2020-10-10Switch back to custom geometry types, unified with layout primitives 🏞Laurenz