diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-08-01 00:01:17 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-08-01 00:10:54 +0200 |
| commit | 06dbac6efd98be5a015023c88ed3dbd9a35a4594 (patch) | |
| tree | bb3c75230098bf71d1ac23bbe7184e4ae7a6cef2 /src/library/mod.rs | |
| parent | 064954cf9edbb0201b6184e69978f86e93741008 (diff) | |
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
Diffstat (limited to 'src/library/mod.rs')
| -rw-r--r-- | src/library/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library/mod.rs b/src/library/mod.rs index 433a4c73..6e84362b 100644 --- a/src/library/mod.rs +++ b/src/library/mod.rs @@ -19,6 +19,7 @@ pub fn std() -> Scope { std.add::<FontFamilyFunc>("font.family"); std.add::<FontStyleFunc>("font.style"); std.add::<FontWeightFunc>("font.weight"); + std.add::<FontWidthFunc>("font.width"); std.add::<FontSizeFunc>("font.size"); std.add_with_meta::<ContentSpacingFunc>("word.spacing", ContentKind::Word); |
