mirror of
https://github.com/typst/typst
synced 2025-05-18 11:05:28 +08:00
Passing color to the augment line in matrix (#2281)
This commit is contained in:
parent
07e3fde54c
commit
34ebbaeb10
@ -378,6 +378,7 @@ fn layout_mat_body(
|
|||||||
let default_stroke_thickness = DEFAULT_STROKE_THICKNESS.scaled(ctx);
|
let default_stroke_thickness = DEFAULT_STROKE_THICKNESS.scaled(ctx);
|
||||||
let default_stroke = FixedStroke {
|
let default_stroke = FixedStroke {
|
||||||
thickness: default_stroke_thickness,
|
thickness: default_stroke_thickness,
|
||||||
|
paint: TextElem::fill_in(ctx.styles()),
|
||||||
line_cap: LineCap::Square,
|
line_cap: LineCap::Square,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
|
BIN
tests/ref/bugs/mat-aug-color.png
Normal file
BIN
tests/ref/bugs/mat-aug-color.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
9
tests/typ/bugs/mat-aug-color.typ
Normal file
9
tests/typ/bugs/mat-aug-color.typ
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
// https://github.com/typst/typst/issues/2268
|
||||||
|
// The augment line should be of the same color as the text
|
||||||
|
#set text(
|
||||||
|
font: "New Computer Modern",
|
||||||
|
lang: "en",
|
||||||
|
fill: yellow,
|
||||||
|
)
|
||||||
|
|
||||||
|
$mat(augment: #1, M, v) arrow.r.squiggly mat(augment: #1, R, b)$
|
Loading…
x
Reference in New Issue
Block a user