mirror of
https://github.com/typst/typst
synced 2025-05-22 21:15:28 +08:00
Fill shorthand for font function
This commit is contained in:
parent
dcdcf53831
commit
4ff1519bea
@ -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")?;
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user