diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-19 13:05:54 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-19 13:05:54 +0200 |
| commit | ee38c6aa9adefe4ca3ddc4aef22a216d7fb4c048 (patch) | |
| tree | 47aeb7f620785c59cd0436adb929436b4aa98955 /src/library/font.rs | |
| parent | 91e512069396f1de616ec2b0fe0cd31a76e7f2e9 (diff) | |
Allow configuration of directions in page and box ↗
Diffstat (limited to 'src/library/font.rs')
| -rw-r--r-- | src/library/font.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/library/font.rs b/src/library/font.rs index bb84f06b..5de0a953 100644 --- a/src/library/font.rs +++ b/src/library/font.rs @@ -53,7 +53,6 @@ use crate::prelude::*; /// ``` pub fn font(mut args: Args, ctx: &mut EvalContext) -> Value { let snapshot = ctx.state.clone(); - let body = args.find::<SynTree>(); if let Some(linear) = args.find::<Linear>() { @@ -67,7 +66,6 @@ pub fn font(mut args: Args, ctx: &mut EvalContext) -> Value { let mut needs_flattening = false; let list: Vec<_> = args.find_all::<StringLike>().map(|s| s.to_lowercase()).collect(); - if !list.is_empty() { Rc::make_mut(&mut ctx.state.font.families).list = list; needs_flattening = true; |
