From 946a461f011209b5502303aabf370e1419d20a53 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 17 Mar 2024 16:13:54 -0600 Subject: [PATCH] [varc] Whitespace --- src/OT/Var/VARC/VARC.cc | 9 +++++++-- src/OT/Var/VARC/VARC.hh | 22 +++++++++++++++++----- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/src/OT/Var/VARC/VARC.cc b/src/OT/Var/VARC/VARC.cc index 3a23859fa..9385f6f34 100644 --- a/src/OT/Var/VARC/VARC.cc +++ b/src/OT/Var/VARC/VARC.cc @@ -127,7 +127,9 @@ hb_transforming_pen_get_funcs () hb_ubytes_t -VarComponent::get_path_at (hb_font_t *font, hb_codepoint_t parent_gid, hb_draw_session_t &draw_session, +VarComponent::get_path_at (hb_font_t *font, + hb_codepoint_t parent_gid, + hb_draw_session_t &draw_session, hb_array_t coords, hb_ubytes_t record, hb_set_t *visited, @@ -294,7 +296,10 @@ VarComponent::get_path_at (hb_font_t *font, hb_codepoint_t parent_gid, hb_draw_s &draw_session.st}; hb_draw_session_t transformer_session {transformer_funcs, &context}; - VARC.get_path_at (font, gid, transformer_session, component_coords, parent_gid, visited, edges_left, depth_left - 1); + VARC.get_path_at (font, gid, + transformer_session, component_coords, + parent_gid, + visited, edges_left, depth_left - 1); #undef PROCESS_TRANSFORM_COMPONENTS #undef READ_UINT32VAR diff --git a/src/OT/Var/VARC/VARC.hh b/src/OT/Var/VARC/VARC.hh index d3e8af2c6..553376148 100644 --- a/src/OT/Var/VARC/VARC.hh +++ b/src/OT/Var/VARC/VARC.hh @@ -42,7 +42,9 @@ struct VarComponent }; HB_INTERNAL hb_ubytes_t - get_path_at (hb_font_t *font, hb_codepoint_t parent_gid, hb_draw_session_t &draw_session, + get_path_at (hb_font_t *font, + hb_codepoint_t parent_gid, + hb_draw_session_t &draw_session, hb_array_t coords, hb_ubytes_t record, hb_set_t *visited, @@ -53,7 +55,9 @@ struct VarComponent struct VarCompositeGlyph { static void - get_path_at (hb_font_t *font, hb_codepoint_t glyph, hb_draw_session_t &draw_session, + get_path_at (hb_font_t *font, + hb_codepoint_t glyph, + hb_draw_session_t &draw_session, hb_array_t coords, hb_ubytes_t record, hb_set_t *visited, @@ -63,7 +67,10 @@ struct VarCompositeGlyph while (record) { const VarComponent &comp = * (const VarComponent *) (record.arrayZ); - record = comp.get_path_at (font, glyph, draw_session, coords, record, visited, edges_left, depth_left); + record = comp.get_path_at (font, glyph, + draw_session, coords, + record, + visited, edges_left, depth_left); } } }; @@ -77,7 +84,9 @@ struct VARC static constexpr hb_tag_t tableTag = HB_TAG ('V', 'A', 'R', 'C'); bool - get_path_at (hb_font_t *font, hb_codepoint_t glyph, hb_draw_session_t &draw_session, + get_path_at (hb_font_t *font, + hb_codepoint_t glyph, + hb_draw_session_t &draw_session, hb_array_t coords, hb_codepoint_t parent_glyph = HB_CODEPOINT_INVALID, hb_set_t *visited = nullptr, @@ -118,7 +127,10 @@ struct VARC visited->add (glyph); hb_ubytes_t record = (this+glyphRecords)[idx]; - VarCompositeGlyph::get_path_at (font, glyph, draw_session, coords, record, visited, edges_left, depth_left); + VarCompositeGlyph::get_path_at (font, glyph, + draw_session, coords, + record, + visited, edges_left, depth_left); visited->del (glyph);