From 3dd1de46d637f36bc30bbd7dd8be3a058d1f1864 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 4 Jun 2023 09:15:14 -0600 Subject: [PATCH] [subset/glyf] Fix a few return_trace's --- src/OT/glyf/glyf.hh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/OT/glyf/glyf.hh b/src/OT/glyf/glyf.hh index 03157ebb9..ef748af87 100644 --- a/src/OT/glyf/glyf.hh +++ b/src/OT/glyf/glyf.hh @@ -89,14 +89,15 @@ struct glyf if (c->plan->normalized_coords) { font = _create_font_for_instancing (c->plan); - if (unlikely (!font)) return false; + if (unlikely (!font)) + return_trace (false); } hb_vector_t glyphs; if (!_populate_subset_glyphs (c->plan, font, glyphs)) { hb_font_destroy (font); - return false; + return_trace (false); } if (font) @@ -106,7 +107,7 @@ struct glyf if (unlikely (!padded_offsets.alloc (glyphs.length, true))) { _free_compiled_subset_glyphs (glyphs); - return false; + return_trace (false); } unsigned max_offset = 0; @@ -133,7 +134,7 @@ struct glyf use_short_loca)))) { _free_compiled_subset_glyphs (glyphs); - return false; + return_trace (false); } glyf *glyf_prime = c->serializer->start_embed ();