From b808d1746d5dafbd0f89925fee4c61d4ea40ea8d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 27 Mar 2025 19:52:42 -0600 Subject: [PATCH] [fontations] Move variable scope --- src/fontations/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fontations/lib.rs b/src/fontations/lib.rs index ea37e21a2..5baee7514 100644 --- a/src/fontations/lib.rs +++ b/src/fontations/lib.rs @@ -316,7 +316,6 @@ extern "C" fn _hb_fontations_get_glyph_v_origin( data.check_for_updates(); let vert_origin = &data.vert_origin; - let vert_vars = &data.vert_vars; if let Some(vert_origin) = vert_origin { unsafe { *x = hb_font_get_glyph_h_advance(font, glyph) / 2; @@ -325,6 +324,7 @@ extern "C" fn _hb_fontations_get_glyph_v_origin( let glyph_id = GlyphId::new(glyph); let mut y_origin = vert_origin.vertical_origin_y(glyph_id) as f32; + let vert_vars = &data.vert_vars; if let Some(vert_vars) = vert_vars { let coords = data.location.coords(); if !coords.is_empty() {