summaryrefslogtreecommitdiff
path: root/src/export/pdf.rs
AgeCommit message (Collapse)Author
2021-08-24PDF bug fixesLaurenz
- Write correct subtype for CID Font - Write CIDToGIDMap attribute - Deduplicate CMap pairings - Bump pdf-writer for string primitive fix
2021-08-24Switch from state to decorations for underline/strikethrough/overlineLaurenz
2021-08-23Links! (#43)Martin
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2021-08-23Kerned PDF outputLaurenz
2021-08-21Shorter/clearer field name for geometry typesLaurenz
Size { width, height } => Size { w, h } Spec { horizontal, vertical } => Spec { x, y } Gen { cross, main } => Gen { inline, block }
2021-08-09New source loading architectureLaurenz
2021-07-21Main context structLaurenz
2021-07-08Rename Fill to PaintLaurenz
2021-06-18Ref count the framesMartin
2021-06-11Remove props in favor of using state for everythingLaurenz
2021-06-10Text decorationsMartin Haug
2021-06-01Refactor path handlingLaurenz
2021-05-28Refactored loading and cache architectureLaurenz
2021-03-24Make pdf module top-level 🧱Laurenz
2021-03-24Text shaping 🚀Laurenz
- Shapes text with rustybuzz - Font fallback with family list - Tofus are shown in the first font Co-Authored-By: Martin <mhaug@live.de>
2021-03-20Square, circle and ellipse 🔵Laurenz
2021-03-19Text colors 🦩 (#18)Martin
2021-03-19Configurable font edges ⚙Laurenz
Adds top-edge and bottom-edge parameters to the font function. These define how the box around a word is computed. The possible values are: - ascender - cap-height (default top edge) - x-height - baseline (default bottom edge) - descender The defaults are chosen so that it's easy to create good-looking designs with vertical alignment. Since they are much tighter than what most other software uses by default, the default leading had to be increased to 50% of the font size and paragraph spacing to 100% of the font size. The values cap-height and x-height fall back to ascender in case they are zero because this value may occur in fonts that don't have glyphs with cap- or x-height (like Twitter Color Emoji). Since cap-height is the default top edge, doing no fallback would break things badly. Removes softness in favor of a simple boolean for pages and a more finegread u8 for spacing. This is needed to make paragraph spacing consume line spacing created by hard line breaks.
2021-03-19Merge text and shape PDF loops 🎡Martin Haug
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-02-11Small fixes ♻Laurenz
2021-02-07Dry-clean visitor with a macro 🏜Laurenz
2021-02-06Merge `rect` and `box` 🦚Martin Haug
2021-02-04Add rectangle function 🎛Martin Haug
2021-01-03Move and rename many things 🚛Laurenz
2020-12-17Test [font] 🧣Laurenz
2020-12-11Switch to miniz_oxide 🔼Laurenz
2020-11-30Compress images in PDFs ⚙Laurenz
2020-11-28Export alpha channel into PDF 🧊Laurenz
2020-11-27Embed each image only once into the PDF 🥔Laurenz
2020-11-27Basic environment and resource loader 🏞Laurenz
2020-11-27Export images in PDF 🖼Laurenz
2020-11-24Use newly stabilized intra doc links ↩Laurenz
2020-11-20Basic image support 🖼Laurenz
- [image] function - Image rendering in tests - Supports JPEG and PNG - No PDF export so far
2020-11-19Switch to pdf-writer ⬆️Laurenz
2020-10-11Refactor layouting base 🪁Laurenz
2020-10-10Switch back to custom geometry types, unified with layout primitives 🏞Laurenz
2020-10-07Fix some clippy warnings ✔Laurenz
2020-10-04Small improvements 🍪Laurenz
2020-10-04Remove unncessary wrappers and typedefs 🛑Laurenz
2020-10-04Remove Typesetter in favor of typeset function 🎯Laurenz
2020-10-03Port to kurbo 🎋Laurenz
2020-09-30Streamline font handling a bit 📜Laurenz
2020-08-30Format everything with rustfmt! 💚Laurenz
2020-08-27Do as Dolores says ⚡Laurenz
2020-08-03Formatting, documentation and small improvements 🧽Laurenz
2020-08-02Refactor model into tree 🛒Laurenz
2020-08-02Layout elements and pure rust rendering 🥏Laurenz
2020-08-01Raw lengths 🚲Laurenz
Replace unitless length with raw f64 and introduce length type with unit.
2020-08-01Port font handling to fontdock and ttf-parser 🛳Laurenz
- Use fontdock for indexing fonts and querying - Typst binary now automatically indexes and uses system fonts in addition to a fixed font folder! - Removes subsetting support for now (was half-finished anyways, plan is to use harfbuzz for subsetting in the future) - Adds font width configuration support