From 91627daee2970b26666d8d9d47161387511667d1 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 28 Feb 2023 14:31:25 -0700 Subject: [PATCH] [outline] Rename internal function --- src/hb-outline.cc | 4 ++-- src/hb-outline.hh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hb-outline.cc b/src/hb-outline.cc index 184e48cfb..0657e0e1d 100644 --- a/src/hb-outline.cc +++ b/src/hb-outline.cc @@ -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; unsigned first = 0; @@ -118,7 +118,7 @@ void hb_outline_t::embolden (float x_strength, float y_strength, x_strength /= 2.f; y_strength /= 2.f; - bool orientation_negative = area () < 0; + bool orientation_negative = control_area () < 0; signed first = 0; for (unsigned c = 0; c < contours.length; c++) diff --git a/src/hb-outline.hh b/src/hb-outline.hh index c463993cf..c43c06596 100644 --- a/src/hb-outline.hh +++ b/src/hb-outline.hh @@ -68,7 +68,7 @@ struct hb_outline_t void reset () { points.shrink (0, false); contours.resize (0); } 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, float x_shift, float y_shift);