[varc] Whitespace

pull/4578/head
Behdad Esfahbod 11 months ago
parent a3211515a1
commit 946a461f01
  1. 9
      src/OT/Var/VARC/VARC.cc
  2. 22
      src/OT/Var/VARC/VARC.hh

@ -127,7 +127,9 @@ hb_transforming_pen_get_funcs ()
hb_ubytes_t 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<const int> coords, hb_array_t<const int> coords,
hb_ubytes_t record, hb_ubytes_t record,
hb_set_t *visited, 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}; &draw_session.st};
hb_draw_session_t transformer_session {transformer_funcs, &context}; 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 PROCESS_TRANSFORM_COMPONENTS
#undef READ_UINT32VAR #undef READ_UINT32VAR

@ -42,7 +42,9 @@ struct VarComponent
}; };
HB_INTERNAL hb_ubytes_t 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<const int> coords, hb_array_t<const int> coords,
hb_ubytes_t record, hb_ubytes_t record,
hb_set_t *visited, hb_set_t *visited,
@ -53,7 +55,9 @@ struct VarComponent
struct VarCompositeGlyph struct VarCompositeGlyph
{ {
static void 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<const int> coords, hb_array_t<const int> coords,
hb_ubytes_t record, hb_ubytes_t record,
hb_set_t *visited, hb_set_t *visited,
@ -63,7 +67,10 @@ struct VarCompositeGlyph
while (record) while (record)
{ {
const VarComponent &comp = * (const VarComponent *) (record.arrayZ); 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'); static constexpr hb_tag_t tableTag = HB_TAG ('V', 'A', 'R', 'C');
bool 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<const int> coords, hb_array_t<const int> coords,
hb_codepoint_t parent_glyph = HB_CODEPOINT_INVALID, hb_codepoint_t parent_glyph = HB_CODEPOINT_INVALID,
hb_set_t *visited = nullptr, hb_set_t *visited = nullptr,
@ -118,7 +127,10 @@ struct VARC
visited->add (glyph); visited->add (glyph);
hb_ubytes_t record = (this+glyphRecords)[idx]; 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); visited->del (glyph);

Loading…
Cancel
Save