mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[fontations] Fix sweep gradients
This commit is contained in:
parent
e10e5c3764
commit
b5a04a9600
1 changed files with 3 additions and 1 deletions
|
@ -546,6 +546,8 @@ impl ColorPainter for HbColorPainter {
|
|||
extend,
|
||||
};
|
||||
let mut color_line = self.make_color_line(&color_stops);
|
||||
let start_angle = start_angle.to_radians();
|
||||
let end_angle = end_angle.to_radians();
|
||||
unsafe {
|
||||
hb_paint_sweep_gradient(
|
||||
self.paint_funcs,
|
||||
|
@ -553,8 +555,8 @@ impl ColorPainter for HbColorPainter {
|
|||
&mut color_line,
|
||||
c0.x,
|
||||
c0.y,
|
||||
end_angle, // TODO Don't know why end_angle and start_angle are swapped, but produces correct results
|
||||
start_angle,
|
||||
end_angle,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue