summaryrefslogtreecommitdiff
path: root/src/library/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-08-02 11:06:45 +0200
committerLaurenz <laurmaedje@gmail.com>2020-08-02 11:06:45 +0200
commitefb78831a7a9fe8c807c326a1bfa338b50579938 (patch)
tree7bbba4130ac47809c72efeac796b2ca71b72e659 /src/library/mod.rs
parent659248d52ff9e6be4dad7c4555bd62899671ad55 (diff)
Unify font and page functions 💕
- Removes font weight and width warnings for now, will be added again later - Adds a bit hacky get_first function for tuples, will be refactored soon anyway
Diffstat (limited to 'src/library/mod.rs')
-rw-r--r--src/library/mod.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/library/mod.rs b/src/library/mod.rs
index 6e84362b..eac45567 100644
--- a/src/library/mod.rs
+++ b/src/library/mod.rs
@@ -16,11 +16,7 @@ pub fn std() -> Scope {
std.add::<ValFunc>("val");
// Font setup
- 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::<FontFunc>("font");
std.add_with_meta::<ContentSpacingFunc>("word.spacing", ContentKind::Word);
// Layout
@@ -40,8 +36,7 @@ pub fn std() -> Scope {
std.add_with_meta::<SpacingFunc>("v", Some(Vertical));
// Page setup
- std.add::<PageSizeFunc>("page.size");
- std.add::<PageMarginsFunc>("page.margins");
+ std.add::<PageFunc>("page");
std
}