From 0d70cfacb2f98e47fb7ec46d598644067893ae33 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 6 Mar 2025 14:50:39 -0700 Subject: [PATCH] Revert accidental changes --- src/fontations/Cargo.lock | 6 ++++++ src/fontations/Cargo.toml | 4 ++-- src/hb-cairo-utils.cc | 4 ---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/fontations/Cargo.lock b/src/fontations/Cargo.lock index af660934f..6b97fb77e 100644 --- a/src/fontations/Cargo.lock +++ b/src/fontations/Cargo.lock @@ -25,6 +25,8 @@ dependencies = [ [[package]] name = "font-types" version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d868ec188a98bb014c606072edd47e52e7ab7297db943b0b28503121e1d037bd" dependencies = [ "bytemuck", ] @@ -58,6 +60,8 @@ dependencies = [ [[package]] name = "read-fonts" version = "0.27.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f004ee5c610b8beb5f33273246893ac6258ec22185a6eb8ee132bccdb904cdaa" dependencies = [ "bytemuck", "font-types", @@ -66,6 +70,8 @@ dependencies = [ [[package]] name = "skrifa" version = "0.28.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16e7936ca3627fdb516e97aca3c8ab5103f94ae32fe5ce80a0a02edcbacb7b53" dependencies = [ "bytemuck", "read-fonts", diff --git a/src/fontations/Cargo.toml b/src/fontations/Cargo.toml index dcfd2796b..dc02d7c30 100644 --- a/src/fontations/Cargo.toml +++ b/src/fontations/Cargo.toml @@ -3,8 +3,8 @@ name = "harfbuzz_fontations" edition = "2021" [dependencies] -read-fonts = { path = "/home/behdad/fontations/read-fonts" } -skrifa = { path = "/home/behdad/fontations/skrifa" } +read-fonts = "0.27.2" +skrifa = "0.28.1" [lib] name = "harfbuzz_fontations" diff --git a/src/hb-cairo-utils.cc b/src/hb-cairo-utils.cc index b81474086..85c62d39a 100644 --- a/src/hb-cairo-utils.cc +++ b/src/hb-cairo-utils.cc @@ -294,8 +294,6 @@ _hb_cairo_get_color_stops (hb_cairo_context_t *c, } hb_color_line_get_color_stops (color_line, 0, &len, *stops); for (unsigned i = 0; i < len; i++) - { - printf ("stop at %g\n", (*stops)[i].offset); if ((*stops)[i].is_foreground) { #ifdef HAVE_CAIRO_USER_SCALED_FONT_GET_FOREGROUND_SOURCE @@ -308,7 +306,6 @@ _hb_cairo_get_color_stops (hb_cairo_context_t *c, #endif (*stops)[i].color = HB_COLOR (0, 0, 0, hb_color_get_alpha ((*stops)[i].color)); } - } *count = len; return true; @@ -344,7 +341,6 @@ _hb_cairo_paint_linear_gradient (hb_cairo_context_t *c, pattern = cairo_pattern_create_linear ((double) xxx0, (double) yyy0, (double) xxx1, (double) yyy1); cairo_pattern_set_extend (pattern, hb_cairo_extend (hb_color_line_get_extend (color_line))); - printf("extend %d\n", hb_color_line_get_extend (color_line)); for (unsigned int i = 0; i < len; i++) { double r, g, b, a;