diff options
| author | Martin Haug <mhaug@live.de> | 2021-10-28 21:25:03 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-11-02 10:39:45 +0100 |
| commit | 8ccb7d6f15a2fbb44247c143b3dd821e44e0d6eb (patch) | |
| tree | a58b538e34418c035b55e880eaf5a1ffc146a6da /src/library/spacing.rs | |
| parent | 5b344b663a3d224134923eea0d67ebf44c069b07 (diff) | |
Smallcaps, sub- and superscript, ligature ctrls...
Diffstat (limited to 'src/library/spacing.rs')
| -rw-r--r-- | src/library/spacing.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/library/spacing.rs b/src/library/spacing.rs index 8ffd5e7a..23328c86 100644 --- a/src/library/spacing.rs +++ b/src/library/spacing.rs @@ -22,3 +22,11 @@ pub enum Spacing { /// A length that is the fraction of the remaining free space in the parent. Fractional(Fractional), } + +castable! { + Spacing: "linear or fractional", + Value::Length(v) => Self::Linear(v.into()), + Value::Relative(v) => Self::Linear(v.into()), + Value::Linear(v) => Self::Linear(v), + Value::Fractional(v) => Self::Fractional(v), +} |
