diff options
Diffstat (limited to 'src/library')
| -rw-r--r-- | src/library/text.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/library/text.rs b/src/library/text.rs index f3e086c8..f12794aa 100644 --- a/src/library/text.rs +++ b/src/library/text.rs @@ -19,6 +19,7 @@ pub fn font(ctx: &mut EvalContext, args: &mut Arguments) -> TypResult<Value> { let serif = args.named("serif")?; let sans_serif = args.named("sans-serif")?; let monospace = args.named("monospace")?; + let fallback = args.named("fallback")?; ctx.template.modify(move |state| { let font = state.font_mut(); @@ -66,6 +67,10 @@ pub fn font(ctx: &mut EvalContext, args: &mut Arguments) -> TypResult<Value> { if let Some(FamilyDef(monospace)) = &monospace { font.families_mut().monospace = monospace.clone(); } + + if let Some(fallback) = fallback { + font.fallback = fallback; + } }); Ok(Value::None) |
