summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2021-06-09Introduce `fr`sMartin Haug
2021-06-09Add note about quadratic running timesLaurenz
2021-06-09Remove template pretty printingLaurenz
Was buggy and pretty useless anyway since it couldn't peek into function templates.
2021-06-09Lists with indent-based parsingLaurenz
- Unordered lists with indent-based parsing and basic layout using stacks - Headings are now also indent based - Removes syntax functions since they will be superseded by select & transform
2021-06-08Move import parser to appropriate position in the fileLaurenz
2021-06-07Switch back to hashtags for headingsLaurenz
2021-06-01Refactor path handlingLaurenz
2021-05-31Fix path hash bug on unixLaurenz
2021-05-31Test cases for include and importMartin Haug
2021-05-31Fix and improveLaurenz
- Set context location to resolved path during module evaluation. - Dump module diagnostics on import - Use same-file for more robustness than fs::canonicalize
2021-05-31Module loading systemLaurenz
Detects cyclic imports and loads each module only once per compilation.
2021-05-31Parse import and include expressionsMartin Haug
Co-Authored-By: Laurenz <laurmaedje@gmail.com>
2021-05-28Refactored loading and cache architectureLaurenz
2021-05-27Remove hash() from AnyNode since caching is now fully transparentLaurenz
2021-05-27Switch to N64 type aliasLaurenz
2021-05-27Adapt to pdf-writer updateLaurenz
2021-05-26Add a cache for unchanged layoutsMartin Haug
Co-Authored-By: Laurenz <laurmaedje@gmail.com>
2021-05-26Add hash impls for all nodesMartin Haug
This prepares the incremental PR. Co-Authored-By: Laurenz <laurmaedje@gmail.com>
2021-05-23A few predefined colors for testingLaurenz
2021-05-23Stack functionLaurenz
2021-05-22Adapt to pdf-writer updateLaurenz
2021-05-21Refactor parser a bitLaurenz
2021-05-21Rename areas to regionsLaurenz
2021-05-19Reword some doc commentsLaurenz
2021-05-18Leaner argument parsingLaurenz
2021-05-18Rename _new to new and typify to valueLaurenz
2021-05-18Min and max functionsLaurenz
2021-05-18Streamline value comparisonsLaurenz
2021-05-17Convert font units to lengths earlierLaurenz
2021-05-17Tidy up layouting codeLaurenz
2021-05-17Move aspect ratio into stackLaurenz
2021-05-17Rename expand to fixed and switch to boolsLaurenz
2021-05-14Fix compilation on unixLaurenz
2021-05-14Remove resource abstraction and handle images nativelyLaurenz
2021-05-13Expose units_per_em and raw face idLaurenz
2021-05-05Make file system loader serializable 📚Laurenz
2021-04-23Reengineer font and resource loading 🏞Laurenz
2021-04-21Make frames serializable 📚Laurenz
This also makes serialization support non-optional since it's too much feature-management for too little benefit.
2021-04-07Refactor and comment ♻Laurenz
2021-04-07Do binary search and find the outermost glyph with the text index 🔍Laurenz
Co-Authored-By: Martin <mhaug@live.de>
2021-04-06Deduplicate ttf-parser and rustybuzz face 🥞Laurenz
2021-04-05Reshaping with unsafe-to-break ⚡Laurenz
Co-Authored-By: Martin <mhaug@live.de>
2021-04-03Fix multi-page paragraph bugs 🐞Laurenz
2021-04-03New paragraph layout 🚀Laurenz
The previous paragraph layout algorithm had a couple of flaws: - It always produced line break opportunities between runs although on the textual level there might have been none. - It didn't handle trailing spacing correctly in some cases. - It wouldn't have been easily adaptable to Knuth-Plass style optimal line breaking because it was fundamentally structured first-fit run-by-run. The new paragraph layout algorithm fixes these flaws. It proceeds roughly in the following stages: 1. Collect all text in the paragraph. 2. Compute BiDi embedding levels. 3. Shape all runs, layout all children and store the resulting items in a reusable (possibly even cacheable) `ParLayout`. 3. Iterate over all line breaks in the concatenated text. 4. Construct lightweight `LineLayout` objects for full lines instead of runs. These mostly borrow from the `ParLayout` and only reshape the first and last run if necessary. The design allows to use Harfbuzz's UNSAFE_TO_BREAK mechanism to make reshaping more efficient. The size of a `LineLayout` can be measured without building the line's frame. 5. Build only the selected line's frames and stack them.
2021-03-30Baseline alignment ⏏Laurenz
2021-03-30Refactor ♻Laurenz
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