[cubic-glyf] Add HB_NO_CUBIC_GLYF

This commit is contained in:
Behdad Esfahbod 2023-02-10 14:15:16 -07:00
parent 1d9dafbfd5
commit 91c2f098d0
2 changed files with 5 additions and 0 deletions

View File

@ -42,7 +42,11 @@ struct path_builder_t
void consume_point (const contour_point_t &point)
{
bool is_on_curve = point.flag & glyf_impl::SimpleGlyph::FLAG_ON_CURVE;
#ifdef HB_NO_CUBIC_GLYF
bool is_cubic = false;
#else
bool is_cubic = !is_on_curve && (point.flag & glyf_impl::SimpleGlyph::FLAG_CUBIC);
#endif
optional_point_t p (font->em_fscalef_x (point.x), font->em_fscalef_y (point.y));
if (!first_oncurve)
{

View File

@ -37,6 +37,7 @@
#ifndef HB_EXPERIMENTAL_API
#define HB_NO_BEYOND_64K
#define HB_NO_CUBIC_GLYF
#define HB_NO_VAR_COMPOSITES
#endif