22 Commits

Author SHA1 Message Date
Laurenz
06dbac6efd Port font handling to fontdock and ttf-parser 🛳
- 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
2020-08-01 00:10:54 +02:00
Laurenz
bbcdeb128c Move, rename and switch some things (boring) 🚚
- Problems -> Diagnostics
- Position -> Pos
- offset_spans -> Offset trait
- Size -> Length (and some more size types renamed)
- Paper into its own module
- scope::Parser -> parsing::CallParser
- Create `Decorations` alias
- Remove lots of double newlines
- Switch from f32 to f64
2020-07-29 18:09:51 +02:00
Laurenz
5badb4e8ff Write lots of parser tests 🌪 2020-02-09 14:14:32 +01:00
Laurenz
751812f451 Serialize layouts with serde 🔠 2020-02-04 21:36:29 +01:00
Laurenz
3150fd5643 Better Debug/Display and Derives 🧽 2020-02-03 12:22:02 +01:00
Laurenz
20fb4e7c37 Document everything 📜 2020-01-26 15:51:13 +01:00
Laurenz
0a087cd28b Reorganize modules 🧱 2020-01-24 16:23:57 +01:00
Laurenz
a93b1ab003 Formatting 🛀 2020-01-06 12:50:20 +01:00
Laurenz
7b84f3b553 Adopt new font loading engine ⚙ 2020-01-04 22:43:26 +01:00
Laurenz
92586d3e68 Progressing stack layouter 🚊 2019-12-10 11:37:12 +01:00
Laurenz
7e98022435 Bad stack layouter 🚑 2019-12-09 13:29:04 +01:00
Laurenz
f5b104d0da Rename crate typst -> typstc 2019-12-05 20:29:55 +01:00
Laurenz
5782b82770 Refactor layouting base ♻ 2019-11-30 18:54:46 +01:00
Laurenz
863a1a7a00 Completed stack and flex refactoring 🔋 2019-11-21 16:03:15 +01:00
Laurenz
261ef9e33a Generalize tree layouter 🌲 2019-11-16 10:37:30 +01:00
Laurenz
1ece263579 Create easy-to-use argument parser 💎 2019-11-07 19:07:11 +01:00
Laurenz
c768b8b61f Refactor stack and flex layouter ♻ 2019-10-14 21:04:12 +02:00
Laurenz
5e41672a91 Refactor and refine PDF exporter ♻ 2019-10-14 18:07:18 +02:00
Laurenz
7c0899b537 Run rustfmt 🚿 2019-10-13 13:10:21 +02:00
Laurenz
5c04185892 Reformat some things 🧺 2019-10-13 13:09:39 +02:00
Laurenz
463e4ebd82 Refactor layout types 🚧 2019-10-13 12:08:07 +02:00
Laurenz
6f22e4f13c Render debug boxes 🧭 2019-10-11 20:28:22 +02:00