mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Fix font weight bug 🚧
This commit is contained in:
parent
c9fd39f37e
commit
bc22d1fbc1
@ -139,7 +139,7 @@ function! {
|
|||||||
|
|
||||||
layout(self, ctx) {
|
layout(self, ctx) {
|
||||||
let mut style = ctx.style.text.clone();
|
let mut style = ctx.style.text.clone();
|
||||||
style.variant.style.toggle();
|
style.variant.weight = self.weight;
|
||||||
styled(&self.body, &ctx, style)
|
styled(&self.body, &ctx, style)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user