commit | ea316b56a0ef1e84c29cd31b45b083bbe0120f83 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Wed Jan 25 15:31:29 2023 -0700 |
committer | Behdad Esfahbod <behdad@behdad.org> | Wed Jan 25 15:31:29 2023 -0700 |
tree | 47e2cab8aed65b5b150a944541ceb6064f0e0a93 | |
parent | 5b05e198cf047335ee9d421d60a0d57e6693424a [diff] |
[cairo] Flip offsets when reversing Fixes many of the var_colrv1 first row tests. https://roettsch.es/var_colrv1.html
diff --git a/src/hb-cairo-utils.cc b/src/hb-cairo-utils.cc index 5e5dadb..3466cba 100644 --- a/src/hb-cairo-utils.cc +++ b/src/hb-cairo-utils.cc
@@ -598,6 +598,8 @@ for (unsigned i = 0; i < n_stops - 1 - i; i++) hb_swap (stops[i], stops[n_stops - 1 - i]); + for (unsigned i = 0; i < n_stops; i++) + stops[i].offset = 1 - stops[i].offset; } if (n_stops > PREALLOCATED_COLOR_STOPS)