Fill shorthand for font function

This commit is contained in:
Laurenz 2021-10-05 19:19:55 +02:00
parent dcdcf53831
commit 4ff1519bea
2 changed files with 2 additions and 2 deletions

View File

@ -39,9 +39,9 @@ pub fn font(ctx: &mut EvalContext, args: &mut Args) -> TypResult<Value> {
let style = args.named("style")?;
let weight = args.named("weight")?;
let stretch = args.named("stretch")?;
let fill = args.named("fill")?.or_else(|| args.eat());
let top_edge = args.named("top-edge")?;
let bottom_edge = args.named("bottom-edge")?;
let fill = args.named("fill")?;
let serif = args.named("serif")?;
let sans_serif = args.named("sans-serif")?;
let monospace = args.named("monospace")?;

View File

@ -30,7 +30,7 @@ Emoji: 🐪, 🌋, 🏞
// Colors.
[
#font(fill: eastern)
This is #font(fill: rgb("FA644B"))[way more] colorful.
This is #font(rgb("FA644B"))[way more] colorful.
]
// Disable font fallback beyond the user-specified list.