[outline] Rename internal function

This commit is contained in:
Behdad Esfahbod 2023-02-28 14:31:25 -07:00
parent 5c46286592
commit 91627daee2
2 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ void hb_outline_t::replay (hb_draw_funcs_t *pen, void *pen_data) const
} }
} }
float hb_outline_t::area () const float hb_outline_t::control_area () const
{ {
float a = 0; float a = 0;
unsigned first = 0; unsigned first = 0;
@ -118,7 +118,7 @@ void hb_outline_t::embolden (float x_strength, float y_strength,
x_strength /= 2.f; x_strength /= 2.f;
y_strength /= 2.f; y_strength /= 2.f;
bool orientation_negative = area () < 0; bool orientation_negative = control_area () < 0;
signed first = 0; signed first = 0;
for (unsigned c = 0; c < contours.length; c++) for (unsigned c = 0; c < contours.length; c++)

View File

@ -68,7 +68,7 @@ struct hb_outline_t
void reset () { points.shrink (0, false); contours.resize (0); } void reset () { points.shrink (0, false); contours.resize (0); }
HB_INTERNAL void replay (hb_draw_funcs_t *pen, void *pen_data) const; HB_INTERNAL void replay (hb_draw_funcs_t *pen, void *pen_data) const;
HB_INTERNAL float area () const; HB_INTERNAL float control_area () const;
HB_INTERNAL void embolden (float x_strength, float y_strength, HB_INTERNAL void embolden (float x_strength, float y_strength,
float x_shift, float y_shift); float x_shift, float y_shift);